Skip to content

Latest commit

 

History

History
2200 lines (1466 loc) · 89.8 KB

CHANGELOG.md

File metadata and controls

2200 lines (1466 loc) · 89.8 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

v2.55.1

What's Changed

  • feat: update _makeTransactionData of NodeUpdateTransaction by @SvetBorislavov in #2658
  • chore: update protobufs by @ivaylonikolov7 in #265

v2.55.0

What's Changed

  • feat: Added InvalidNode check in the Executable by @ivaylogarnev-limechain in #2661
  • feat: Pull protos from services by @ivaylogarnev-limechain in #2611
  • fix: Protobufs updated by @ivaylogarnev-limechain in #2691
  • fix: typescript issue with long by @ivaylonikolov7 in #2692
  • fix: rework examples by @ivaylonikolov7 in #2646
  • chore: replace pnpm/action-setup with a step-security maintained one by @PavelSBorisov in #2676
  • docs: fix readme by @ivaylonikolov7 in #2685
  • ci: Issues with codecov upload by @san-est in #2684
  • ci: add pr title check workflow to ensure conventional commits by @PavelSBorisov in #2661

v2.55.0-beta.1

What's Changed

  • feat: Pull protos from services by @ivaylogarnev-limechain in #2611
  • fix: rework examples by @ivaylonikolov7 in #2646
  • docs: fix readme by @ivaylonikolov7 in #2685
  • chore: replace pnpm/action-setup with a step-security maintained one by @PavelSBorisov in #2676
  • ci: Issues with codecov upload by @san-est in #2684

v2.54.2

What's Changed

  • feat: Add node AccountId to timeout/max attempt errors by @ivaylogarnev-limechain in #2631
  • feat: Add method to NodeClient for Initialization with MirrorNetwork only by @ivaylogarnev-limechain in #2635
  • fix: _fromProtobuf functions where google primitive wrappers used (#2657) by @SvetBorislavov in #2657
  • fix: update typescript version by @ivaylonikolov7 in #2666
  • chore(deps-dev): bump vite from 4.4.9 to 4.5.3 in /packages/cryptography by @dependabot in #2237
  • chore(deps-dev): bump fast-xml-parser from 4.2.7 to 4.4.1 in /examples/react-native-example by @dependabot in #2420
  • chore(deps-dev): bump eslint-plugin-deprecation from 2.0.0 to 3.0.0 by @dependabot in #2426
  • chore(deps-dev): bump body-parser from 1.20.2 to 1.20.3 by @dependabot in #2525
  • chore(deps-dev): bump pino-pretty from 10.0.0 to 11.2.2 by @dependabot in #2427
  • chore(deps-dev): bump vite from 4.4.9 to 5.3.5 by @dependabot in #2429
  • chore(deps): bump micromatch from 4.0.5 to 4.0.8 by @dependabot in #2485
  • chore(deps): bump codecov/codecov-action from 5.0.2 to 5.0.4 by @dependabot in #2656
  • chore(deps): bump actions/setup-java from 4.4.0 to 4.5.0 by @dependabot in #2608
  • chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0 by @dependabot in #2609
  • chore(deps): bump dcarbone/install-jq-action from 2.0.2 to 3.0.1 by @dependabot in #2650
  • chore(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2 by @dependabot in #2651
  • chore(deps): bump step-security/harden-runner from 2.10.1 to 2.10.2 by @dependabot in #2653
  • chore(deps): bump renovatebot/github-action from 40.3.3 to 41.0.3 by @dependabot in #2653
  • chore(deps): bump cross-spawn from 6.0.5 to 6.0.6 in /packages/proto by @dependabot in #2666

v2.54.0-beta.1

What's Changed

  • feat: Add node AccountId to timeout/max attempt errors by @ivaylogarnev-limechain in #2631
  • feat: Add method to NodeClient for Initialization with MirrorNetwork only by @ivaylogarnev-limechain in #2635
  • chore(deps-dev): bump vite from 4.4.9 to 4.5.3 in /packages/cryptography by @dependabot in #2237
  • chore(deps-dev): bump fast-xml-parser from 4.2.7 to 4.4.1 in /examples/react-native-example by @dependabot in #2420
  • chore(deps-dev): bump eslint-plugin-deprecation from 2.0.0 to 3.0.0 by @dependabot in #2426
  • chore(deps-dev): bump body-parser from 1.20.2 to 1.20.3 by @dependabot in #2525
  • chore(deps-dev): bump pino-pretty from 10.0.0 to 11.2.2 by @dependabot in #2427
  • chore(deps-dev): bump vite from 4.4.9 to 5.3.5 by @dependabot in #2429
  • chore(deps): bump micromatch from 4.0.5 to 4.0.8 by @dependabot in #2485

v2.53.0

What's Changed

  • feat: Refactor SignatureMap for Multi-Transaction Support in _signedTransactions by @ivaylonikolov7 and @SvetBorislavov in #2601
  • feat: export NodeAddressBook class by @SvetBorislavov in #2599
  • feat: exports WebClient for testing grpc-web proxies by @agadzhalov in #2603
  • feat: adding account 32, 33, and 34 endpoints to the clientconstants.js by @rustyShacklefurd in #2607
  • feat: tokenTransfer property exposed in AbstractTokenTransferTransaction by @ivaylogarnev-limechain in #2616
  • feat: example for get file contents by @b-l-u-e in #2578
  • feat: example for create account with threshold key @b-l-u-e in #2579
  • fix: incomplete file append transaction by @SvetBorislavov in #2600
  • fix: comment-out-not-working-examples by @ivaylonikolov7 in #2620
  • fix: TopicMessageQuery#unsubscribe() attempts to re-subscribe by @Jexsie in #2582
  • fix: incorrect protobuf body field used by @kantorcodes in #2613
  • fix: new eslint settings because of eslint bump in simple_rest_signature_provider by @ivaylonikolov7 in #2624
  • ci: fix vulnerable library versions by @mishomihov00 in #2594
  • chore(deps): bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot #2602

v2.53.0-beta.4

What's Changed

  • fix: comment-out-not-working-examples by @ivaylonikolov7 in #2620
  • feat: adding account 32, 33, and 34 endpoints to the clientconstants.js by @rustyShacklefurd in #2607
  • feat: Refactor SignatureMap for Multi-Transaction Support in _signedTransactions by @ivaylonikolov7 and @SvetBorislavov in #2601
  • feat: tokenTransfer property exposed in AbstractTokenTransferTransaction by @ivaylogarnev-limechain in #2616
  • feat: example for get file contents by @b-l-u-e in #2578
  • feat: example for create account with threshold key @b-l-u-e in #2579
  • fix: TopicMessageQuery#unsubscribe() attempts to re-subscribe by @Jexsie in #2582
  • fix: incorrect protobuf body field used by @kantorcodes in #2613
  • chore(deps): bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot #2602
  • fix: new eslint settings because of eslint bump in simple_rest_signature_provider by @ivaylonikolov7 in #2624
  • ci: fix vulnerable library versions by @mishomihov00 in #2594

v2.53.0-beta.1

What's Changed

  • feat: export NodeAddressBook class by @SvetBorislavov in #2599
  • feat: exports WebClient for testing grpc-web proxies by @agadzhalov in #2603
  • fix: incomplete file append transaction by @SvetBorislavov in #2600

v2.52.0

What's Changed

  • fix: file append transaction id after deserialization by @SvetBorislavov in #2583

v2.52.0-beta.4

What's Changed

  • feat: expose PendingAirdropId by @ivaylonikolov7 in #2567
  • feat: Changed the return type of removeAllSignatures method by @ivaylogarnev in #2559
  • fix: lock protobufjs version by @ivaylonikolov7 in #2569
  • fix: increase test timeout globally by @ivaylonikolov7 in #2566
  • ci: set codecov config by @ivaylonikolov7 in #2575
  • chore(deps): bump actions/checkout from 4.1.7 to 4.2.1 by @dependabot in #2568
  • chore(deps): bump micromatch in /examples/simple_rest_signature_provider by @dependabot in #2484
  • chore(deps): bump micromatch in /examples/react-native-example by @dependabot in #2483
  • chore(deps): bump ws in /examples/react-native-example by @dependabot in #2357
  • chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /examples by @dependabot in #2357
  • Bump tar from 6.2.0 to 6.2.1 in /examples/react-native-example by @dependabot in #2249
  • Bump ip from 1.1.8 to 1.1.9 in /examples/react-native-example by @dependabot in #2150
  • Bump express in /examples/simple_rest_signature_provider by @dependabot in #2224
  • Bump express in /examples/simple_rest_signature_provider by @dependabot in #2224
  • chore(deps): bump body-parser and express in /tck by @dependabot in #2523
  • chore(deps): bump send and express in /tck by @dependabot in #2522
  • chore(deps): bump path-to-regexp and express in /tck by @dependabot in #2521
  • chore(deps): bump renovatebot/github-action from 40.2.6 to 40.3.1 by @dependabot in #2550
  • chore(deps): bump actions/setup-java from 4.2.2 to 4.4.0 by @dependabot in #2540
  • chore(deps): bump step-security/harden-runner from 2.9.1 to 2.10.1 by @dependabot in #2515
  • Bump vite from 4.4.9 to 4.5.3 by @dependabot in #2236
  • chore(deps): bump serve-static and express in /tck by @dependabot in #2520
  • chore(deps): bump renovatebot/github-action from 40.3.1 to 40.3.3 by @dependabot in #2577

v2.52.0-beta.3

What's Changed

  • fix: serialize deserialize FileAppend by @ivaylonikolov7 in #2532
  • fix: change FEE_SCHEDULE_FILE_PART_UPLOADED to not show as an error by @ivaylonikolov7 in #2537
  • ci: Updating the build workflow to use Codecov actions instead of codecov npm package by @san-est in #2558

v2.52.0-beta.1

What's Changed

  • feat: Add multi-signature and multi-node support for signing and adding signatures by @ivaylogarnev-limechain in #2514
  • feat: Add removeSignature/clearAllSignatures methods by @ivaylogarnev-limechain in #2491
  • chore(deps): bump actions/setup-node from 4.0.3 to 4.0.4 by @dependabot in #2538

v2.51.0

What's Changed

  • feat: token airdrop transactions by @ivaylonikolov7 in #2492
  • fix: react native's bip32 should use array instead of buffer due to incompatibility by @ivaylonikolov7 in #2502
  • ci: update workflows to use latitude.sh based runners by @nathanklick in #2495
  • chore: Added prerequisites for building the project by @ivaylogarnev-limechain in #2478
  • chore(deps-dev): bump braces in /packages/cryptography by @dependabot in #2347
  • chore(deps): bump braces from 3.0.2 to 3.0.3 in /common_js_test by @dependabot in #2344
  • chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /packages/proto by @dependabot in #2345
  • chore(deps): bump braces in /examples/react-native-example by @dependabot in #2346

v2.50.0

What's Changed

  • Bump follow-redirects from 1.15.2 to 1.15.6 in /packages/cryptography by @dependabot in #2205
  • Bump follow-redirects from 1.15.4 to 1.15.6 in /examples by @dependabot in #2206
  • Bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in #2207
  • Bump follow-redirects from 1.15.4 to 1.15.6 in /examples/simple_rest_signature_provider by @dependabot in #2208
  • Bump follow-redirects from 1.15.4 to 1.15.6 in /examples/react-native-example by @dependabot in #2209
  • feat: add dynamic address book unit tests by @ivaylonikolov7 in #2459

v2.50.0-beta.3

What's Changed

  • chore(deps): bump renovatebot/github-action from 40.2.5 to 40.2.6 by @dependabot in #2456
  • feat: dynamic address book [HIP-869] by @svetoslav-nikol0v in #2403

v2.50.0-beta.2

What's Changed

  • fix: ECDSA and ED25519 public key mismatch when you get it from mnemonic by @ivaylonikolov7 in #2451
  • fix: do not reset receiverSignatureRequired in AccountUpdateTransaction by default by @svetoslav-nikol0v in #2450
  • chore(deps): bump renovatebot/github-action from 40.1.12 to 40.2.5 by @dependabot in #2447
  • chore(deps): bump step-security/harden-runner from 2.8.0 to 2.9.1 by @dependabot in #2446
  • chore(deps): bump actions/setup-java from 4.2.1 to 4.2.2 by @dependabot in #2445
  • chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 by @dependabot in #2396

v2.49.2

What's Changed

  • fix: update taskfile status check for submodules task by @isavov in #2435
  • chore: fix token permissions for deploy to github pages by @isavov in #2418
  • fix: reconnect to working node by @0xivanov in #2417
  • release: proto v2.15.0-beta.3 by @svetoslav-nikol0v in #2415
  • update: add node id to the precheck error by @svetoslav-nikol0v in #2414
  • feat: Implement TokenRejectTransaction by @ivaylonikolov7 in #2411
  • update: handle PLATFORM_NOT_ACTIVE error gracefully by @svetoslav-nikol0v in #2401
  • feat: pull protobuf changes from latest tag by @isavov in #2435
  • chore: fix token permissions for deploy to github pages by @isavov in #2389
  • update: release all skipped tests by @svetoslav-nikol0v in #2395
  • test: add maxAutomaticTokenAssociations tests by @ivaylonikolov7 in #2390

v2.48.1

What's Changed

  • release: proto v2.15.0-beta.2 by @svetoslav-nikol0v in #2367
  • ci: update publishing workflow to use appropriate pre release and stable versions by @rbarkerSL in #2364
  • feature: custom derivation paths in Mnemonic ECDSA private key derivation by @bguiz in #2341

v2.48.0

What's Changed

  • release: proto v2.15.0-beta.2 by @svetoslav-nikol0v in #2367
  • ci: update publishing workflow to use appropriate pre release and stable versions by @rbarkerSL in #2364
  • feature: custom derivation paths in Mnemonic ECDSA private key derivation by @bguiz in #2341

v2.47.0

What's Changed

  • revert: mirror node queries changes by @svetoslav-nikol0v in #2328
  • feature: change or remove existing keys from a token [HIP-540] by @svetoslav-nikol0v in #2299
  • release: proto v2.15.0-beta.1 by @svetoslav-nikol0v in #2351

v2.46.0

What's Changed

  • fix: naming convention by @svetoslav-nikol0v in #2303
  • fix: enhanced Logger to accept a log file location by @jeromy-cannon in #2298
  • fix: typo in SDK query file by @svetoslav-nikol0v in #2293
  • feature: solution to query the mirror node for the account balance, account info, and contract info data by @svetoslav-nikol0v in #2289

v2.45.0

What's Changed

  • fix: solve backward compatibility issues between the SDK and hedera-services v0.49 (modularized code) by @svetoslav-nikol0v in #2240
  • feature: update metadata field of fungible and non-fungible tokens, and dynamic NFTs (HIP-646, HIP-765 and HIP-657) by @svetoslav-nikol0v in #2210

v2.45.0-beta.1

What's Changed

  • fix: solve backward compatibility issues between the SDK and hedera-services v0.49 (modularized code) by @svetoslav-nikol0v in #2240
  • feature: update metadata field of fungible and non-fungible tokens, and dynamic NFTs (HIP-646, HIP-765 and HIP-657) by @svetoslav-nikol0v in #2210

v2.44.0

What's Changed

  • fix: set correct autoRenrewAccountId by @svetoslav-nikol0v in #2217
  • update: add a new getter to the TransferTransaction class by @svetoslav-nikol0v in #2214
  • fix: integer overflow isuue for defaultMaxQueryPayment field by @svetoslav-nikol0v in #2213
  • chore(ci): update the publish workflow to release the cryptography and proto artifacts if needed by @nathanklick in #2198

v2.43.0

What's Changed

  • fix: do not instantiate logger inside a method by @leninmehedy in #2195
  • release: proto beta version 2.14.0-beta.5 by @svetoslav-nikol0v in #2196
  • fix: hbar presentation after serialization/deserialization by @svetoslav-nikol0v in #2189
  • fix: inability to create and execute freeze transaction by @svetoslav-nikol0v in #2171
  • update: update steps for release process in RELEASE.md file by @svetoslav-nikol0v in #2201
  • update: add section in README.md file on how to start the tests by @svetoslav-nikol0v in #2201

v2.43.0-beta.1

What's Changed

  • fix: do not instantiate logger inside a method by @leninmehedy in #2195
  • release: proto beta version 2.14.0-beta.5 by @svetoslav-nikol0v in #2196
  • fix: hbar presentation after serialization/deserialization by @svetoslav-nikol0v in #2189
  • fix: inability to create and execute freeze transaction by @svetoslav-nikol0v in #2171
  • update: update steps for release process in REALEASE.md file by @svetoslav-nikol0v in #2201
  • update: add section in README.md file on how to start the tests by @svetoslav-nikol0v in #2201

v2.42.0

What's Changed

  • feature: handling and externalisation improvements for account nonce updates (HIP-844) by @svetoslav-nikol0v in #2176

v2.42.0-beta.4

What's Changed

  • fix: use one of preselected nodes to execute the transaction by @svetoslav-nikol0v in #2165

v2.42.0-beta.3

What's Changed

  • fix: deserialize the FileAppendTransaction by @svetoslav-nikol0v in #2145
  • chore: ensure CI release workflow properly handles prerelease builds by @nathanklick in #2142
  • fix: update copy of transaction in transaction list by @svetoslav-nikol0v in #2139

v2.42.0-beta.2

What's Changed

  • Add HIP-745: Optionally send transaction data without required transaction fields by @svetoslav-nikol0v in #2067

v2.42.0-beta.1

What's Changed

  • Add HIP-745: Optionally send transaction data without required transaction fields by @svetoslav-nikol0v in #2067

v2.41.0

What's Changed

  • Cannot read properties of undefined (reading 'accountId') by @svetoslav-nikol0v in #2103
  • Export Long from SDK by @svetoslav-nikol0v in #2107

v2.41.0-beta.1

What's Changed

  • [#2102] Cannot read properties of undefined (reading 'accountId') by @svetoslav-nikol0v in #2103

v2.40.0

What's Changed

  • Added alias utils for parsing from/to public address by @ochikov in #2066
  • Update axios by @ochikov in #2090
  • Update react yarn by @ochikov in #2093
  • Add a Pause Key to TokenUpdateTransaction's fromProtobuf method by @svetoslav-nikol0v in #2095

v2.39.0

What's Changed

  • Release new cryptography package version by @ochikov in #2041
  • Release new proto package beta version by @ochikov in #2040
  • New web proxy for nodeAccountId 3 by @svetoslav-nikol0v in #2051
  • Update dependencies and apply new linter rules by @ochikov in #2043

v2.38.0

What's Changed

  • Add two grpc-web endpoints for node27/28 to ClientConstants.js by @ElijahLynn in #2019
  • LocalProvider - close method by @svetoslav-nikol0v in #2020
  • Method fromEvmAddress() fails to return the contract id from long zero address by @svetoslav-nikol0v in #2018
  • Add support for Long and BigNumber to the array methods of ContractFunctionParameters by @svetoslav-nikol0v in #2013
  • Added fromStringDer() method (and tests) and deprecated fromString() method by @svetoslav-nikol0v in #2030
  • Remove all warnings by @svetoslav-nikol0v in #2033

v2.37.0

What's Changed

  • Bug on mnemonic.toStandardECDSAsecp256k1PrivateKey() and mnemonic.toEcdsaPrivateKey() by @svetoslav-nikol0v in #1989
  • Add Long and BigNumber support for ContractFunctionParameters methods #1972 by @svetoslav-nikol0v in #1997
  • Update readme file by @svetoslav-nikol0v in #2004

v2.37.0-beta.2

What's Changed

  • Bug on mnemonic.toStandardECDSAsecp256k1PrivateKey() and mnemonic.toEcdsaPrivateKey() by @svetoslav-nikol0v in #1989

v2.37.0-beta.1

What's Changed

  • Bug on mnemonic.toStandardECDSAsecp256k1PrivateKey() and mnemonic.toEcdsaPrivateKey() by @svetoslav-nikol0v in #1989

v2.36.0

What's Changed

  • Fix the fromBytes for tokenWipeTransaction by @ochikov in #1968
  • Exposing client operator with a getter by @rokn in #1970
  • Examples related changes by @svetoslav-nikol0v in #1953
  • Fix integration tests and remove .only by @ochikov in #1971

v2.35.0

What's Changed

  • Fix integration tests by @ochikov in #1896
  • Update packages and release beta versions by @ochikov in #1891
  • Fix typos by @omahs in #1889
  • Fixed duplicated doc comments by @0xMimir in #1888
  • Fix topic subscription error handling by @rokn in #1907
  • Update precompile system contracts by @petreze in #1910
  • Update/packages vol2 by @ochikov in #1905
  • Ignore minor and patch updates by @ochikov in #1937
  • Fix/dependabot updates by @ochikov in #1938
  • Fix/dependabot updates by @ochikov in #1939
  • Fix/dependabot updates by @ochikov in #1940
  • Add keepalive_time property when we init grpc client by @petreze in #1908
  • Update the precompiled jsons of the contracts by @ochikov in #1954
  • Add setDefaultMaxQueryPayment() and deprecate setMaxQueruPayment() by @svetoslav-nikol0v in #1897
  • Fixed toJSON functionality in TranasctionRecord/Receipt/Response by @rokn in #1956
  • [#1857] Аdding task to run all example by @svetoslav-nikol0v in #1955
  • Adding new env variable by @svetoslav-nikol0v in #1957

v2.34.1

What's Changed

  • Follow convention toJSON by @petreze in #1885

v2.34.0

What's Changed

  • Add toJSON method for tx response, receipt and record by @petreze in #1859
  • Add example on how to generate transaction IDs on demand and scenarios by @petreze in #1860
  • Ensure that generated tx ids are unique by @petreze in #1862
  • Fix the examples to work with local node as well as with the new precompile contracts by @ochikov in #1863
  • Update dependencies across examples and packages v2 by @ochikov in #1879
  • Finalize toJson functionality by @petreze in #1880

v2.33.0

What's Changed

  • Handle EvmAddress when passed to addAddress as a ContractFunctionParameter by @petreze in #1819
  • Fix node selection improvement by @petreze in #1815
  • Enhance AccountId.toSolidityAddress() to handle alias field by @petreze in #1820
  • Allow ED25519 keys to generate long-zero address from alias by @petreze in #1822
  • Fix warning issues during build by @ochikov in #1850
  • Add mapi call that queries the mirror node to get the actual evm address field by @petreze in #1853

v2.32.0

What's Changed

  • Update the client constants file with the mainnet proxies by @ochikov in #1780
  • Add method that queries the mirror node to get the actual num field by @petreze in #1790
  • Add retry logic on grpc web errors by @petreze in #1802
  • Add method handler by @petreze in #1804
  • Comment out unavailable web proxies nodes by @petreze in #1810
  • Fix deprecation and add comments by @petreze in #1811

v2.32.0-beta.2

What's Changed

  • Comment out unavailable web proxies nodes by @petreze in #1810

v2.32.0-beta.1

What's Changed

  • Update the client constants file with the mainnet proxies by @ochikov in #1780
  • Add method that queries the mirror node to get the actual num field by @petreze in #1790
  • Add retry logic on grpc web errors by @petreze in #1802

v2.31.0

What's Changed

  • Add logger tests by @petreze in #1725
  • Change copyright year by @petreze in #1738
  • Add handlers inside parsing methods from evm address by @petreze in #1741

v2.30.0

What's Changed

  • Added new transaction type based on EIP-2930 by @rokn in #1702
  • Fix contract function params by @ochikov in #1703
  • Fix integration tests fees by @ochikov in #1715
  • Fix zero padding for nanos in timestamp by @petreze in #1713
  • Added release doc by @ochikov in #1720
  • Fix DER and PEM headers by @petreze in #1706
  • Fix dependencies by @petreze in #1722
  • Feature contract nonces - HIP-729 support by @petreze in #1723

v2.29.0

What's Changed

  • GRPC improvements by @petreze in #1656
  • Update the addressbook on SDK build by @petreze in #1658

v2.29.0-beta.1

What's Changed

  • GRPC improvements by @petreze in #1656

v2.28.0

What's Changed

  • Fix conditions in getNode by @petreze in #1654

v2.28.0-beta.1

What's Changed

  • Fix conditions in getNode by @petreze in #1654

v2.27.0

What's Changed

  • Added record for failed transaction by @ochikov in #1643
  • Fix encode/decode scheduled transactions by @ochikov in #1638
  • Fix/issue with encode decode by @ochikov in #1647
  • fix exact version of grpc library by @ochikov in #1652
  • Fix/remove ping all by @ochikov in #1650

v2.26.0

What's Changed

  • Fix: decrement unhealthy nodes count on readmit time expiry by @petreze in #1613
  • Fix: unhealthy nodes by @petreze in #1611
  • Add logger and transaction stats inside the SDK by @petreze in #1607

v2.26.0-beta.3

What's Changed

  • Fix: decrement unhealthy nodes count on readmit time expiry by @petreze in #1613

v2.26.0-beta.2

What's Changed

  • Fix: unhealthy nodes by @petreze in #1611

v2.26.0-beta.1

What's Changed

  • Add logger and transaction stats inside the SDK by @petreze in #1607

v2.25.0

What's Changed

  • Create example of deploy contract with value by @petreze in #1604
  • Unhealthy node info by @petreze in #1605
  • Fix: encoding decoding function params by @ochikov in #1608

v2.24.2

What's Changed

  • Fix: list is locked when trying to get the hash before signing the transaction by @petreze in #1576
  • Add zero padding for nanos by @petreze in #1573
  • Аdd export for EntityIdHelper by @ochikov in #1574
  • Add contractId as possible input for AccountAllowancesApproveTransaction by @ochikov in #1575
  • Add assessment method support for custom fractional fees by @petreze in #1600

v2.24.1-beta.1

What's Changed

  • Fix: list is locked when trying to get the hash before signing the transaction by @petreze in #1576
  • Add zero padding for nanos by @petreze in #1573
  • Аdd export for EntityIdHelper by @ochikov in #1574
  • Add contractId as possible input for AccountAllowancesApproveTransaction by @ochikov in #1575

v2.24.1

What's Changed

  • Fix: remove the insecure port of mirror nodes by @dikel in #1535
  • Fix: mnemonic refactoring by @petreze in #1550
  • Change dependabot interval to monthly by @ochikov in #1547
  • Create example for getting all chunked messages statuses by @ochikov in #1536
  • Fix: spelling of HARDENED exported constant by @bguiz in #1561
  • Feature add alias support in AccountCreateTX by @petreze in #1563
  • Add exports for types by @ochikov in #1566

v2.24.0-beta.1

What's Changed

  • Fix: remove the insecure port of mirror nodes by @dikel in #1535
  • Fix: mnemonic refactoring by @petreze in #1550
  • Change dependabot interval to monthly by @ochikov in #1547
  • Create example for getting all chunked messages statuses by @ochikov in #1536

v2.24.0

What's Changed

  • Expose some PublicKey methods by @petreze in #1521
  • Fix operator and operator account id override in beforeExecute by @dikel in #1531
  • fix contract create flow with external signer by @ochikov in #1533

v2.23.0

What's Changed

  • Fix examples build warnings by @petreze in #1475
  • Refactor variables by @petreze in #1481
  • Fix/loop nodes accounts by @ochikov in #1493
  • Fix/get cost query by @ochikov in #1496
  • Create github workflow for updating the docs by @ochikov in #1516

v2.22.0

What's Changed

  • Feature nft allowance tests by @petreze in #1468
  • Release/hip 583 by @petreze in #1472

v2.20.0

What's Changed

  • Add new status codes by @petreze in #1400
  • chore(deps-dev): bump typescript from 4.9.4 to 4.9.5 in /examples/react-native-example by @dependabot in #1438
  • chore(deps): bump react-native from 0.71.1 to 0.71.2 in /examples/react-native-example by @dependabot in #1437
  • chore(deps): bump react-native-web from 0.18.10 to 0.18.12 in /examples/react-native-example by @dependabot in #1436
  • chore(deps): bump ua-parser-js from 0.7.31 to 0.7.33 in /examples/react-native-example by @dependabot in #1435
  • chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /examples/react-native-example by @dependabot in #1434
  • Fix _maxAutomaticTokenAssociations in contract create and contract up… by @ochikov in #1444
  • Feature/extend ethereumflow by @ochikov in #1447
  • Fix/timeout issue by @ochikov in #1414
  • Updated Protobuf statuses
  • fix ping to throw by @ochikov in #1426
  • Bump up dependencies by @ochikov in #1402
  • Removed unnecessary check by @petreze in #1429
  • Fix inaccurate cost calculation by @petreze in #1430
  • Fix/update mirror endpoints #1448
  • Add delete nft allowances and add delegate spender functionality by @petreze in #1452

Full Changelog: https://github.com/hashgraph/hedera-sdk-js/compare/v2.19.2...v2.20.0

v2.19.2

What's Changed

  • Return dependabot dependency checker by @petreze in #1361
  • Release/cryptography v1.4.2 by @ochikov in #1366
  • Fix web proxy by @petreze in #1395
  • Fix PublicKey.fromString(newAccountPublicKey.toStringDer());

v2.19.1

What's Changed

  • KeyList now handles single key properly as first parameter by @petreze in #1348
  • Fix typo in deprecation suggestion by @ochikov in #1352
  • Update contribution guide by @ochikov in #1353
  • Add max execution time setter for NodeChannel GRPC by @ochikov in #1354
  • Update the addressbook update to be 24 hours by @ochikov in #1359

v2.19.0

What's Changed

  • Update the Mainnet mirror node and add integration test by @ochikov in #1327
  • Bug/1326 mirror network update by @ochikov in #1328
  • Added getters and deprecated old ones by @ochikov in #1329
  • Integration test workflow by @ochikov in #1330
  • Added proxies for different networks by @petreze in #1331
  • Аdded NFKD normalization for mnemonic passphrase by @petreze in #1335
  • Change param of getNftInfo from allowanceSpenderAccountId to spenderId by @ochikov in #1337
  • Fix for optional param of transaction range by @ochikov in #1339

v2.18.6

What's Changed

  • Fix some of the Github workflows by @ochikov in #1311
  • Bug/unhealthy node by @ochikov in #1321

v2.18.5

What's Changed

  • Throw timeout error and do not make the node unhealthy by @ochikov in #1298
  • Refactor the HIP to point to testnet by @ochikov in #1303
  • Fix for fromBytes to return the range in PrngTransaction by @ochikov in #1302
  • Fix HIP-573 example by @petreze in #1300

v2.18.4

What's Changed

  • Example/hip 573 by @petreze in #1292
  • Example/hip 564 by @ochikov in #1285
  • Example/hip 542 by @petreze in #1293
  • bug: fix and improve taskfiles workflow by @petreze in #1283
  • Fix the task test:release command by @ochikov in #1296
  • Fix the offset for uint24 & int24 datatypes in contract functions params by @ochikov in #1295

v2.19.0-beta.1

Added

  • CustomFee.allCollectorsAreExempt

v2.18.3

Added

  • PrecheckStatusError.contractFunctionResult
  • TransactionReceiptQuery.[set|get]ValidateStatus()
  • TransactionRecrodQuery.[set|get]ValidateReceiptStatus()

Fixed

  • WebClient and NativeClient do not schedule network updates

v2.18.2

Added

  • TransactionId.getReceipt()
  • TransactionId.getRecord()
  • AccountCreateTransaction.[set|get]Alias[Key|EvmAddress]()
  • ContractCreateFlow.[set|get]MaxChunks()
  • Support for automatically updating networks
  • Client.[set|get]NetworkUpdatePeriod()
  • Client constructor supports scheduleNetworkUpdate to disable auto updates
  • Support for local-node as one of the networks

Fixed

  • ContractCreateFlow.executeWithSigner()
  • PublicKey.fromString() for ECDSA keys
  • WebChannel not checking headers before decoding body

v2.18.1

Fixed

  • TransferTransaction incorrectly merging FT and NFT tranfers
  • ContractCreateFlow.execute() not using keys provided in .sign()
  • PublicKey.equals()

v2.18.0

Added

  • Mnemonic.to[Ed25519|Ecdsa]PrivateKey()

Deprecated

  • Mnemonic.toPrivateKey() - Use Mnemonic.to[Ed25519|Ecdsa]PrivateKey()

Fixed

  • #1188 - Undeprecate *ContractId.fromSolidityAddress()

v2.17.3

Fixed

  • Query.queryPayment, Query.maxQueryPayment, and Client.maxQueryPayment interactions
  • Remove making empty requests to grpc.myhbarwallet.com to calculate time drift

Added

  • Expose setters/getters for Cache to allow users to set their own calculated values

v2.17.2

Fixed

  • TokenUpdateTransaction.pauseKey not being serialized into protobuf

v2.17.1

Added

  • TokenNftInfo.allowanceSpenderAccountId
  • ContractCreateFlow.sign[With]()

Fixed

  • FileAppendTransaction chunk size should default to 4096
  • ContractFunctionResult.gas can be -1 when null in protobufs: #1208
  • FileAppendTransaction.setTransactionId() not locking the transaction ID list
  • TopicMessageSubmitTransaction.setTransactionId() not locking the transaction ID list

Deprecated

v2.17.0

Added

  • PrngThansaction
  • TransactionRecord.prngBytes
  • TransactionRecord.prngNumber

Deprecated

  • ContractFunctionResult.stateChanges - Use mirror node for contract traceability instead
  • ContractStateChanges
  • StorageChange

v2.16.6

Added

  • ContractCreateTransaction.autoRenewAccountId
  • ContractUpdateTransaction.autoRenewAccountId

v2.17.0-beta.1

Added

  • PrngThansaction
  • TransactionRecord.prngBytes
  • TransactionRecord.prngNumber

v2.16.5

Fixed

  • EthereumFlow contract creation should hex encode bytes

v2.16.4

Fixed

  • Time syncing should not continue if response.headers.date is NaN
  • Time drift should use a POST request with content type set correctly
  • Transaction ID generation should no longer fail in browsers

v2.16.4-beta.3

Fixed

  • Time syncing should not continue if response.headers.date is NaN

v2.16.4-beta.2

Fixed

  • Time drift should use a POST request with content type set correctly

v2.16.4-beta.1

Fixed

  • Time drift should use a HEAD request to avoid issues with content type

v2.16.3

Fixed

  • Implement AccountAllowanceApproveTransaction.tokenNftApprovals
  • Implement AccountAllowanceDeleteTransaction.tokenNftAllowanceDeletions

v2.16.2

Fixed

  • TokenNftAllowance to/from protobuf should not assume spenderAccountId is set
  • Time drift sync should use myhbarwallet to prevent CORS issues

v2.16.1

Fixed

v2.16.0

Added

  • StakingInfo
  • AccountCreateTransaction.stakedAccountId
  • AccountCreateTransaction.stakedNodeId
  • AccountCreateTransaction.declineStakingReward
  • ContractCreateTransaction.stakedAccountId
  • ContractCreateTransaction.stakedNodeId
  • ContractCreateTransaction.declineStakingReward
  • AccountUpdateTransaction.stakedAccountId
  • AccountUpdateTransaction.stakedNodeId
  • AccountUpdateTransaction.declineStakingReward
  • ContractUpdateTransaction.stakedAccountId
  • ContractUpdateTransaction.stakedNodeId
  • ContractUpdateTransaction.declineStakingReward
  • TransactionRecord.paidStakingRewards
  • ScheduleCreateTransaction.expirationTime
  • ScheduleCreateTransaction.waitForExpiry
  • Variants to FeeDataType
  • TopicMessage.initialTransactionId

Fixed

  • TransactionRecord.[to|from]Bytes() should round trip correclty

v2.16.0-beta.1

Added

  • StakingInfo
  • AccountCreateTransaction.stakedAccountId
  • AccountCreateTransaction.stakedNodeId
  • AccountCreateTransaction.declineStakingReward
  • ContractCreateTransaction.stakedAccountId
  • ContractCreateTransaction.stakedNodeId
  • ContractCreateTransaction.declineStakingReward
  • AccountUpdateTransaction.stakedAccountId
  • AccountUpdateTransaction.stakedNodeId
  • AccountUpdateTransaction.declineStakingReward
  • ContractUpdateTransaction.stakedAccountId
  • ContractUpdateTransaction.stakedNodeId
  • ContractUpdateTransaction.declineStakingReward
  • TransactionRecord.paidStakingRewards
  • ScheduleCreateTransaction.expirationTime
  • ScheduleCreateTransaction.waitForExpiry

v2.15.0

Added

  • EthereumFlow
  • EthereumTransactionData
  • EthereumTransactionDataLegacy
  • EthereumTransactionDataEip1559
  • Signer.getAccountKey() - Signature providers should be implementing this method, but it was added in a none-breaking change way so old signer provider implementations won't break when updating to the latest JS SDK version
  • ContractCreateFlow.executeWithSigner() - Execute a flow using a signer
  • AccountInfoFlow.verify[Signature|Transaction]WithSigner() - Execute a flow using a signer
  • A third party time source will be used for transaction ID generation when possible.

Deprecated

  • EthereumTransaction.[set|get]CallData() - Use EthereumTransaction.[set|get]CallDataFileId() instead
  • EthereumTransaction.[set|get]MaxGasAllowance() - Use EthereumTransaction.[set|get]MaxGasAllowanceHbar() instead

v2.14.2

Added

  • Exported RequestType

Fixed

  • RequestType missing codes

v2.14.1

Added

  • Exported FeeComponents
  • Exported FeeData
  • Exported FeeDataType
  • Exported FeeSchedule
  • Exported FeeSchedules
  • Exported TransactionFeeSchedule

v2.14.0

Added

  • AccountId.aliasEvmAddress
  • ContractCreateTransaction.[get|set]MaxAutomaticTokenAssociations()
  • ContractCreateTransaction.[get|set]Bytecode()
  • ContractUpdateTransaction.[get|set]MaxAutomaticTokenAssociations()
  • ContractCreateFlow.[get|set]MaxAutomaticTokenAssociations()
  • AccountInfo.ethereumNonce
  • ContractCallResult.senderAccountId
  • ContractCallQuery.[get|set]SenderAccountId()
  • TransactionRecord.ethereumHash
  • EthereumTransaction
  • TransactionResponse.get[Receipt|Record]Query()
  • [Wallet|Signer|Provider].sendRequest() -> [Wallet|Signer|Provider].call()
  • [Wallet|Signer].[sign|populate|check]Transaction() are now generic over the parameter
  • Wallet.checkTransaction should not error if the Transaction.transactionId is null
  • More status codes to Status

Fixed

  • Bumped @hashgraph/proto version to correctly support account allowances
  • TransactionId.transactionId accessor should not error if there is no transaction ID set and instead should return a nullable TransactionId
  • ContractFunctionParameters.addBytes() where the byte length is a factor of 32 and greater than 32
  • [Web|Native]Channel should correctly propagate the error from fetch()

v2.14.0-beta.2

Added

  • ContractEvmTransaction

v2.14.0-beta.1

Added

  • More status codes to Status

Changed

  • [Wallet|Signer|Provider].sendRequest() -> [Wallet|Signer|Provider].call()
  • [Wallet|Signer].[sign|populate|check]Transaction() are now generic over the parameter
  • Wallet.checkTransaction should not error if the Transaction.transactionId is null

Fixed

  • Bumped @hashgraph/proto version to correctly support account allowances
  • TransactionId.transactionId accessor should not error if there is no transaction ID set and instead should return a nullable TransactionId
  • ContractFunctionParameters.addBytes() where the byte length is a factor of 32 and greater than 32
  • [Web|Native]Channel should correctly propagate the error from fetch()

v2.13.1

Fixed

  • AccountId.clone() should clone the aliasKey

v2.13.0

Added

  • ContractFunctionResult.[gas|amount|functionParameters]
  • AccountAllowanceDeleteTransaction
  • Wallet.createRandom[ED25519|ECDSA]()

Fixed

  • WebChannel and NativeChannel using HashgraphProto.proto instead of proto in the URL
  • TransactionReceiptQuery's error should contain the transaction set on the request instead of the payment transaction ID
  • Query.maxQueryPayment should be used before Client.maxQueryPayment
  • request timeout check being reversed

Changed

  • Updated Signer and Provider to be interfaces instead of classes

Deprecated

  • AccountAllowanceAdjustTransaction

Removed

  • LocalWallet - Use Wallet instead

v2.13.0-beta.1

Fixed

  • TopicUpdateTransaction should be able to call [get|set]ExpirationTime().
  • Status should contain a return code for 314.

Added

  • ContractFunctionResult.[gas|amount|functionParameters]
  • AccountAllowanceDeleteTransaction

v2.12.1

Fixed

  • Only check for logging environment variables inside index.js
  • Update Exectuable, Query, and CostQuery to correctly set nodeAccountIds
  • Make suer Query saves the operator from the client to be used when building new payment transactions

v2.12.0

Added

  • AccountInfoFlow.verify[Signature|Transaction]()
  • Client.[set|get]NodeMinReadmitPeriod()
  • Support for using any node from the entire network upon execution if node account IDs have no been locked for the request.
  • Support for all integer widths for ContractFunction[Result|Selector|Params]
  • AccountAllowanceApproveTransaction.approve[Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke][Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke]TokenNftAllowanceAllSerials()
  • TransactionRecord.[hbar|token|tokenNft]AllowanceAdjustments
  • TransferTransaction.addApproved[Hbar|Token|Nft]Transfer()

Deprecated

  • AccountAllowanceApproveTransaction.add[Hbar|Token|TokenNft]Allowance[WithOwner](), use approve*Allowance() instead.
  • AccountAllowanceAdjustTransaction.add[Hbar|Token|TokenNft]Allowance[WithOwner](), use [grant|revoke]*Allowance() instead.
  • TransferTransaction.set[Hbar|Token|Nft]TransferApproval(), use addApproved*Transfer() instead.

Changed

  • Network behavior to follow a more standard approach (remove the sorting we used to do).

Fixed

  • Ledger ID checksums
  • Transaction.fromBytes() should validate all the transaction bodies are the same
  • ExchangeRate._[from|to]Protobuf() should correctly decode expirationTime
  • Mark expo as a optional peer dependency
  • SubscriptionHandle should be exported
  • TransferTransaction transfers merging

v2.11.3

Fixed

  • Scheduled transactions should use the default transaction fee if a fee was not explicitly set

v2.11.2

Added

  • TransactionRecord.[hbar|token|tokenNft]AllowanceAdjustments
  • TransferTransaction.addApproved[Hbar|Token|Nft]Transfer()

v2.11.1

Added

  • AccountAllowanceApproveTransaction.approve[Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke][Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke]TokenNftAllowanceAllSerials()

v2.12.0-beta.1

Added

  • AccountInfoFlow.verify[Signature|Transaction]()
  • Client.[set|get]NodeMinReadmitPeriod()
  • Support for using any node from the entire network upon execution if node account IDs have no been locked for the request.
  • Support for all integer widths for ContractFunction[Result|Selector|Params]
  • AccountAllowanceApproveTransaction.approve[Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke][Hbar|Token|TokenNft]Allowance()
  • AccountAllowanceAdjustTransaction.[grant|revoke]TokenNftAllowanceAllSerials()
  • TransactionRecord.[hbar|token|tokenNft]AllowanceAdjustments
  • TransferTransaction.addApproved[Hbar|Token|Nft]Transfer()
  • Ledger ID checksums
  • Transaction.fromBytes() should validate all the transaction bodies are the same

Deprecated

  • AccountAllowanceApproveTransaction.add[Hbar|Token|TokenNft]Allowance[WithOwner](), use approve*Allowance() instead.
  • AccountAllowanceAdjustTransaction.add[Hbar|Token|TokenNft]Allowance[WithOwner](), use [grant|revoke]*Allowance() instead.
  • TransferTransaction.set[Hbar|Token|Nft]TransferApproval(), use addApproved*Transfer() instead.

Changed

  • Network behavior to follow a more standard approach (remove the sorting we used to do).

Fixed

  • Ledger ID checksums
  • Transaction.fromBytes() should validate all the transaction bodies are the same
  • ExchangeRate._[from|to]Protobuf() should correctly decode expirationTime
  • Mark expo as a optional peer dependency

Added

v2.11.0

Added

  • LocalWallet
  • LocalProvider
  • Provider
  • Signer
  • Wallet
  • SignerSignature
  • Verbose logging using js-logger
  • Client.setRequestTimeout()

Fixed

  • TLS for mirror nodes
  • Transactions should have an appropriate default (copied from Java SDK)
  • Min/max backoff for nodes should start at 8s to 60s
  • The current backoff for nodes should be used when sorting inside of network meaning nodes with a smaller current backoff will be prioritized
  • Chunked transactions (FileAppendTransaction and TopicMessageSubmitTransaction) should use the correct transation ID per transaction
  • Transaction removing signatures when calling Transaction.[toBytes|getTransactionHash]()

v2.11.0-beta.1

Added

  • LocalWallet
  • LocalProvider
  • Provider
  • Signer
  • Wallet
  • SignerSignature
  • Verbose logging using js-logger
  • Client.setRequestTimeout()

Fixed

  • TLS for mirror nodes
  • Transactions should have an appropriate default (copied from Java SDK)
  • Min/max backoff for nodes should start at 8s to 60s
  • The current backoff for nodes should be used when sorting inside of network meaning nodes with a smaller current backoff will be prioritized
  • Chunked transactions (FileAppendTransaction and TopicMessageSubmitTransaction) should use the correct transation ID per transaction
  • Transaction removing signatures when calling Transaction.[toBytes|getTransactionHash]()

v2.10.1

Fixes

  • NativeClient IPs should have a port

v2.10.0

Added

  • AddressBookQuery
  • Status codes
  • *[Transaction|Query].setGrpcDeadline()
  • *Allowance.ownerAccountId

Fixed

  • Mirror network incorrectly using 433 for TLS instead of 443
  • TransactionReceipt protobuf encoding
  • ContractId.fromString()

v2.10.0-beta.1

Added

  • AddressBookQuery
  • Status codes
  • *[Transaction|Query].setGrpcDeadline()
  • *Allowance.ownerAccountId

v2.9.1

Fixed

  • Mirror network incorrectly using 433 for TLS instead of 443
  • TransactionReceipt protobuf encoding
  • ContractId.fromString()

v2.10.0-beta.1

Added

  • AddressBookQuery
  • Status codes
  • *[Transaction|Query].setGrpcDeadline()
  • *Allowance.ownerAccountId

Fixed

  • Mirror network incorrectly using 433 for TLS instead of 443
  • TransactionReceipt protobuf encoding
  • ContractId.fromString()

v2.9.0

Added

  • ContractId.fromEvmAddress()
  • ContractFunctionResult.stateChanges
  • ContractFunctionResult.evmAddress
  • ContractStateChange
  • StorageChange
  • [FileAppend|TopicMessageSubmit]Transaction.[set|get]ChunkSize(), and changed default chunk size for FileAppendTransaction to 2048.
  • AccountAllowance[Adjust|Approve]Transaction
  • TransactionRecord.tokenTransfersList

v2.9.0-beta.1

Added

  • ContractId.fromEvmAddress()
  • ContractFunctionResult.stateChanges
  • ContractFunctionResult.evmAddress
  • ContractStateChange
  • StorageChange
  • [FileAppend|TopicMessageSubmit]Transaction.[set|get]ChunkSize(), and changed default chunk size for FileAppendTransaction to 2048.
  • AccountAllowance[Adjust|Approve]Transaction
  • TransactionRecord.tokenTransfersList
  • AccountAllowance[Adjust|Approve]Transaction
  • AccountInfo.[hbar|token|tokenNft]Allowances
  • [Hbar|Token|TokenNft]Allowance
  • [Hbar|Token|TokenNft]Allowance
  • TransferTransaction.set[Hbar|Token|TokenNft]TransferApproval()

v2.8.0

Added

  • Support for regenerating transaction IDs on demand if a request responses with TRANSACITON_EXPIRED

Fixed

  • Transaction.sign() should correctly save public keys and signers when sign on demand is disabled
  • WebClient failing to be constructed because its network was missing ports

v2.8.0-beta.2

Fixed

  • Transaction.sign() should correctly save public keys and signers when sign on demand is disabled
  • WebClient failing to be constructed because its network was missing ports

v2.7.1

Fixed

  • WebClient failing to be constructed because its network was missing ports

v2.8.0-beta.1

Added

  • Support for regenerating transaction IDs on demand if a request responses with TRANSACITON_EXPIRED

v2.7.0

Added

  • [Private|Public]Key.toAccountId()
  • TokenUpdateTransaction.[get|set]PauseKey()
  • TokenUpdateTransaction.setSupplyKey()
  • Updated Status with new response codes
  • AccountId.aliasKey, including AccountId.[to|from]String() support.
  • [PublicKey|PrivateKey].toAccountId().
  • aliasKey fields in TransactionRecord and AccountInfo.
  • nonce field in TransactionId, including TransactionId.[set|get]Nonce()
  • children fields in TransactionRecord and TransactionReceipt
  • duplicates field in TransactionReceipt
  • [TransactionReceiptQuery|TransactionRecordQuery].[set|get]IncludeChildren()
  • TransactionReceiptQuery.[set|get]IncludeDuplicates()
  • New response codes.
  • Support for ECDSA SecP256K1 keys.
  • PrivateKey.generate[ED25519|ECDSA]()
  • [Private|Public]Key.from[Bytes|String][DER|ED25519|ECDSA]()
  • [Private|Public]Key.to[Bytes|String][Raw|DER]()

Fixed

  • Requests should retry on INTERNAL consistently
  • Signing data which contains bytes larger than a value of 127
  • [Private|Public]Key.fromBytesEcdsa() checking for the wrong bytes length

Deprecated

  • TokenUpdateTransaction.setsupplyKey() - use setSupplyKey() instead
  • PrivateKey.generate(), use PrivateKey.generate[ED25519|ECDSA]() instead.

v2.7.0-beta.4

Fixed

  • Signing data which contains bytes larger than a value of 127
  • [Private|Public]Key.fromBytesEcdsa() checking for the wrong bytes length

v2.7.0-beta.3

Added

  • TokenUpdateTransaction.[get|set]PauseKey()
  • TokenUpdateTransaction.setSupplyKey()
  • Updated Status with new response codes

Deprecated

  • TokenUpdateTransaction.setsupplyKey() - use setSupplyKey() instead

v2.7.0-beta.2

Added

  • [Private|Public]Key.toAccountId()

v2.7.0-beta.1

Added

  • AccountId.aliasKey, including AccountId.[to|from]String() support.
  • [PublicKey|PrivateKey].toAccountId().
  • aliasKey fields in TransactionRecord and AccountInfo.
  • nonce field in TransactionId, including TransactionId.[set|get]Nonce()
  • children fields in TransactionRecord and TransactionReceipt
  • duplicates field in TransactionReceipt
  • [TransactionReceiptQuery|TransactionRecordQuery].[set|get]IncludeChildren()
  • TransactionReceiptQuery.[set|get]IncludeDuplicates()
  • New response codes.
  • Support for ECDSA SecP256K1 keys.
  • PrivateKey.generate[ED25519|ECDSA]()
  • [Private|Public]Key.from[Bytes|String][DER|ED25519|ECDSA]()
  • [Private|Public]Key.to[Bytes|String][Raw|DER]()

Deprecated

  • PrivateKey.generate(), use PrivateKey.generate[ED25519|ECDSA]() instead.

Fixed

  • Requests should retry on INTERNAL consistently

v2.6.0

Added

  • Support for multiple IPs per node
  • New smart contract response codes

Fixed

  • TransferTransaction should deterministically order transfers before submitting transaction

v2.6.0-beta.1

Added

  • New smart contract response codes

v2.5.0

Fixed

  • WebClient should be able to construct an empty MirrorNetwork
  • Bad imports while using Common JS

Deprecated

  • ContractUpdateTransaction.[set|get]ByteCodeFileId()
  • ContractCallQuery.[set|get]MaxResultSize()

v2.5.0-beta.2

Fixed

  • Bad imports while using Common JS

v2.5.0-beta.1

Deprecated

  • ContractUpdateTransaction.[set|get]ByteCodeFileId()
  • ContractCallQuery.[set|get]MaxResultSize()

v2.4.1

Fixed

  • Bad imports while using Common JS

v2.4.0

Added

  • TLS support
  • Client.[get|set]TransportSecurity() - Enable/Disable TLS
  • *Id.toSolidityAddress()
  • Support for number in all ContractFunctionParam.add[Uint|Int]*() methods

Fixed

  • *Id.fromSolidityAddress()

v2.3.0

Added

  • FreezeType
  • FreezeTransaction.[get|set]FreezeType()
  • FreezeTransaction.[get|set]FileId()
  • FreezeTransaction.[get|set]FileHash()

Deprecated

  • FreezeTransaction.[get|set]UpdateFileId(), use .[get|set]FileId() instead.

v2.2.0

Fixed

  • gRPC client not timing out on unresponsive connections

v2.2.0-beta.1

Added

  • Support for HIP-24 (token pausing)
    • TokenInfo.pauseKey
    • TokenInfo.pauseStatus
    • TokenCreateTransaction.pauseKey
    • TokenUpdateTransaction.pauseKey
    • TokenPauseTransaction
    • TokenUnpauseTransaction

v2.1.1

Fixed

  • UTF8 encoding and ecoding in React Native

v2.1.0

Added

  • Support for automatic token associations
    • TransactionRecord.automaticTokenAssociations
    • AccountInfo.maxAutomaticTokenAssociations
    • AccountCreateTransaction.maxAutomaticTokenAssociations
    • AccountUpdateTransaction.maxAutomaticTokenAssociations
    • TokenRelationship.automaticAssociation
    • TokenAssociation

Fixed

  • TransferTransaction.addHbarTransfer() was not combining transfers

v2.1.0-beta.1

Added

  • Support for automatic token associations
    • TransactionRecord.automaticTokenAssociations
    • AccountInfo.maxAutomaticTokenAssociations
    • AccountCreateTransaction.maxAutomaticTokenAssociations
    • AccountUpdateTransaction.maxAutomaticTokenAssociations
    • TokenRelationship.automaticAssociation
    • TokenAssociation

v2.0.30

Added

  • TokenNftInfo.toString() - Stringifies the JSON representation of the current TokenNftInfo
  • TokenNftInfo.toJson() - JSON representation of the current TokenNftInfo
  • Timestamp.toString() - displays as <seconds>.<nanos>. Use Timestamp.toDate() to print differently

Deprecated

  • TokenNftInfoQuery.[set|get]AccountId() with no replacement
  • TokenNftInfoQuery.[set|get]TokenId() with no replacement
  • TokenNftInfoQuery.[set|get]Start() with no replacement
  • TokenNftInfoQuery.[set|get]End() with no replacement
  • TokenMintTransaction.[add|set]Metadata() support for string metadata

v2.0.29

Added

  • Support for CustomRoyaltyFees
  • Updated Status with new response codes
  • Implemented Client.[set|get]NetworkName()

v2.0.28

Added

  • Client.pingAll() - pings all network nodes
  • Client.[set|get]NodeWaitTime() - minimum delay for nodes that are nto responding
  • Client.[set|get]MaxAttempts() - max number of attempts for each request
  • Client.[set|get]MaxNodesPerTransaction() - number of node account IDs to use per request
  • CustomFixedFee.[set|get]HbarAmount() - helper method to set both denominatingTokenId and amount when fee is an Hbar amount
  • CustomFixedFee.setDenominatingTokenToSameToken() - helper method to set denominatingTokenId to 0.0.0 which is not obvious

Changed

  • Client.ping() will no longer throw an error

Deprecated

  • *[Transaction|Query].[set|get]MaxRetries() - Use *[Transaction|Query].[set|get]MaxAttempts() instead

Fixed

  • PrivateKey.signTransaction() and PublicKey.verifyTransaction() should correctly freeze an unfrozen transaction

v2.0.27

Added

  • Updated Status with new response codes
  • Support for Hbar.[from|to]String() to be reversible
  • Client.setAutoValidateChecksums() set whether checksums on ids will be automatically validated upon attempting to execute a transaction or query. Disabled by default. Check status with Client.isAutoValidateChecksumsEnabled()
  • *Id.toString() no longer stringifies with checksums. Use *Id.getChecksum() to get the checksum that was parsed, or use *Id.toStringWithChecksum(client) to stringify with the correct checksum for that ID on the client's network.
  • *Id.validateChecksum() to validate a checksum. Throws new BadEntityIdException

Fixed

  • Free queries should not longer attempt to sign payment transactions
  • All enitty IDs within response should no longer contain a checskum. Use *Id.toStringWithChecksum(Client) to stringify with a checksum
  • ReceiptStatusError should contain a properly filled out TransactionReceipt

Deprecated

  • *Id.validate() use *Id.validateChecksum() instead

v2.0.26

Changed

  • Updated Status and FeeDataType with new codes

v2.0.25

Added

  • TokenCreateTransaction.[get|set]FeeScheduleKey()
  • Support for parsing file 0.0.111 using FeeSchedules

Fixed

  • TokenMintTransaction.[to|from]Bytes() incorrectly parsing the transaction body

Removed

  • TokenCreateTransaction.addCustomFee() - use TokenCreateTransaction.setCustomFees() instead

v2.0.25-beta.1

Added

  • Support for NFTS
    • Creating NFT tokens
    • Minting NFTs
    • Burning NFTs
    • Transfering NFTs
    • Wiping NFTs
    • Query NFT information
  • Support for Custom Fees on tokens:
    • Setting custom fees on a token
    • Updating custom fees on an existing token

Fixed

  • Loading keystore should no longer error when CipherAlgorithm doesn't match case
  • PrivateKey.legacyDerive() should now be consistent with the v1.4.6 JS SDK

v2.0.24

Added

  • Hbar.fromTinybar() supports BigNumber
  • Hbar.toString() supports HbarUnit
  • Implemented to and from bytes for TopicInfo and TokenInfo
  • Support for sign-on-demand
    • This is disabled by default to you'll need to enable it using Client.setSignOnDemand(true)
    • If sign-on-demand is enabled you'll need to use async versions of these methods:
      • *Transaction.toBytes() -> *Transaction.toBytesAsync()
      • *Transaction.getSignatures() -> *Transaction.getSignaturesAsync()
      • *Transaction.getTransactionHash() -> *Transaction.getTransactionHashAsync()

Changes

  • All requests now retry on gRPC status INTERNAL if error returned contains RST_STREAM

v2.0.23

Added

  • Added support for TLS on mirror node connections
  • Implemented *Id.clone() (this is used internally to fix some issues that only surface in React Native)
  • Implement Timestamp.plusNanos()
  • Added support for entity ID checksums. The network will be extracted from the checksum of the entity ID and validated on each request to make sure a request is not happening on one network while an entity ID references another network. Entity IDs with a network will print with a checksum while entity IDs without a checksum will not print the checksum part.

Fixed

  • TopicMessageQuery.startTime not updating start time by one nanosecond causing a message to appear twice if the connection reset
  • TopicMessageQuery should log retries
  • TransactionReceipt error handling; this should now throw an error contain the receipt

v2.0.22

Fixed

  • TopicMessageQuery.maxBackoff was not being used at all
  • TopicMessageQuery.limit was being incorrectly update with full TopicMessages rather than per chunk
  • TopicMessageQuery.startTime was not being updated each time a message was received
  • TopicMessageQuery.completionHandler was be called at incorrect times

v2.0.21

Added

  • Exposed AccountBalance.tokenDecimals
  • Support for string parameters in Hbar.fromTinybars()
  • Hbar.toBigNumber() which is a simple wrapper around Hbar.to(HbarUnit.Hbar)
  • AccountBalance.toJSON()
  • Support for maxBackoff, maxAttempts, retryHandler, and completionHandler in TopicMessageQuery
  • Default logging behavior to TopicMessageQuery if an error handler or completion handler was not set

Fixed

  • TopicMessageQuery retry handling; this should retry on more gRPC errors
  • TopicMessageQuery max retry timeout; before this would could wait up to 4m with no feedback
  • Missing @readonly tag on TokenInfo.tokenMemo
  • Keystore failing to recognize keystores generated by v1 SDKs
  • Errors caused by the use ?. and ?? within a node 12 context
  • TopicMessageQuery

v2.0.20

Added

  • PrivateKey.legacyDerive() - Derive private key using legacy derivations
  • Hbar.fromTinybars() supports string parameter
  • Hbar.toBigNumber() aliases Hbar.to(HbarUnit.Hbar)
  • AccountBalance.tokenDecimals - Represents the decimals on a token
  • AccountBalance.toString() should print a JSON.stringified() output
  • AccountBalance.toJSON()

Changed

  • Mnemonic.toLegacyPrivateKey() no longer automaticaly derives PrivateKey, instead produces root PrivateKey Use PrivateKey.legacyDerive() to derive the proper PrivateKey manually
  • Removed the use of @hashgraph/protobufjs in favor of protobufjs The reason @hashgraph/protobufjs even exists is because protobufjs contains eval which fails CSP in browser. However, while running integration tests through vite and mocha it seems the eval was never hit.
  • Moved from yarn to pnpm because of performance issues with yarn

v2.0.19

Added

  • Scheduled transaction support: ScheduleCreateTransaction, ScheduleDeleteTransaction, and ScheduleSignTransaction
  • React Native support
  • Support for raw proto.Transaction bytes in Transaction.fromBytes()
    • This means v1 SDK's Transaction.toBytes() will now be supported in v2 Transaction.fromBytes() However, Transaction.toBytes() and Transaction.getTransactionHas() in v2 will produce different results in the v1 SDK's.

Fixed

  • addSignature() Behavior Differs Between Implementations [NCC-E001154-005]
  • Decreased CHUNK_SIZE 4096->1024 and increased default max chunks 10->20
  • Export StatusError, PrecheckStatusError, ReceiptStatusError, and BadKeyError
  • KeyList.toString()
  • AccountBalance.toString()

Deprecated

  • new TransactionId(AccountId, Instant) - Use TransactionId.withValidStart() instead.

v2.0.18 - Deprecated

v2.0.17-beta.7

Fixed

  • addSignature() Behavior Differs Between Implementations [NCC-E001154-005]
  • Decreased CHUNK_SIZE 4096->1024 and increased default max chunks 10->20
  • Renamed ScheduleInfo.getTransaction() -> ScheduleInfo.getScheduledTransaction()

v2.0.17-beta.6

Added

  • React Native support

v2.0.17-beta.5 - Deprecated

v2.0.17-beta.4

Fixed

  • Scheduled transactions should use new HAPI protobufs
  • Removed nonce from TransactionId
  • schedule-multi-sig-transaction example to use new scheduled transaction API

Removed

  • ScheduleCreateTransaction.addScheduledSignature()
  • ScheduleCreateTransaction.scheduledSignatures()
  • ScheduleSignTransaction.addScheduledSignature()
  • ScheduleSignTransaction.scheduledSignatures()

v2.0.17-beta.3

Added

  • Support for raw proto.Transaction bytes in Transaction.fromBytes()
    • This means v1 SDK's Transaction.toBytes() will now be supported in v2 Transaction.fromBytes() However, Transaction.toBytes() and Transaction.getTransactionHas() in v2 will produce different results in the v1 SDK's.
  • Export StatusError, PrecheckStatusError, ReceiptStatusError, and BadKeyError

Fixed

  • A few examples that did not work with CONFIG_FILE environment variable

v2.0.17-beta.2

Added

  • Support for setting signatures on the underlying scheduled transaction
  • TransactionReceipt.scheduledTransactionId
  • ScheduleInfo.scheduledTransactionId
  • TransactionRecord.scheduleRef
  • Support for scheduled and nonce in TransactionId
    • TransactionId.withNonce() - Supports creating transaction ID with random bytes.
    • TransactionId.[set|get]Scheduled() - Supports scheduled transaction IDs.
  • memo fields for both create and update transactions and info queries
    • Account[Create|Update]Transaction.[set|get]AccountMemo()
    • File[Create|Update]Transaction.[set|get]AccountMemo()
    • Token[Create|Update]Transaction.[set|get]AccountMemo()
    • AccountInfoQuery.accountMemo
    • FileInfoQuery.fileMemo
    • TokenInfoQuery.tokenMemo

Fixed

  • ScheduleInfo.*ID field names should use Id Ex. ScheduleInfo.creatorAccountID -> ScheduleInfo.creatorAccountId
  • Renamed ScheduleInfo.memo -> ScheduleInfo.scheduleMemo
  • Chunked transactions should not support scheduling if the data provided is too large
    • TopicMessageSubmitTransaction
    • FileAppendTransaction

v2.0.17-beta.1

Added

  • Support for scheduled transactions.
    • ScheduleCreateTransaction - Create a new scheduled transaction
    • ScheduleSignTransaction - Sign an existing scheduled transaction on the network
    • ScheduleDeleteTransaction - Delete a scheduled transaction
    • ScheduleInfoQuery - Query the info including bodyBytes of a scheduled transaction
    • ScheduleId

Fixed

  • KeyList.toString()
  • AccountBalance.toString()

Deprecated

  • new TransactionId(AccountId, Instant) - Use TransactionId.withValidStart() instead.

v2.0.15

Added

  • Implement Client.forName() to support construction of client from network name.
  • Implement PrivateKey.verifyTransaction() to allow a user to verify a transaction was signed with a partiular key.

v2.0.14

General Changes

* All queries and transactions support setting fields in the constructor using
  an object, e.g. `new AccountBalanceQuery({ accountId: "0.0.3" })`, or
  `new AccountCreateTransaction({ key: client.operatorPublicKey, initialBalance: 10 })`.
* Almost all instances of `BigNumber` have been replaced with `Long`

v1.1.12

Fixed

  • Ed25519PrivateKey.fromMnemonic regressed in v1.1.8 and was not working in the browser.

  • Use detached signatures when signing the transaction. This should allow for much larger transactions to be submitted.

v1.1.11

Fixed

  • Ed25519PrivateKey.fromKeystore regressed in v1.1.9 and was not working in the browser

v1.1.10

Added

  • Client.ping(id: AccountIdLike) Pings a node by account ID.

  • Ed25519PrivateKey.fromMnemonic works with legacy 22-word phrases.

Deprecated

  • Client.getAccountBalance() to match the Java SDK. Use AccountBalanceQuery directly instead.

v1.1.9

Added

  • Allow BigNumber or String to be used as Tinybar where Tinybar was accepted

  • Add support for decoding Ed25519PrivateKey from a PEM file using Ed25519PrivateKey.fromPem()

  • Add support for passing no argument to ContractFunctionResult.get*() methods.

  • Add MnemonicValidationResult which is the response type for Mnemonic.validte()

  • Add public method Mnemonic.validate(): MnemonicValidationResult which validates if the mnemonic came from the same wordlist, in the right order, and without misspellings.

  • Add BadPemFileError which is thrown when decoding a pem file fails.

Fixed

  • Fixes AddBytes32Array

  • Fixes Hbar.isNegative() failing with undefined.

  • Fixes CryptoTransferTransaction.addTransfer() not supporting BigNumber or number as arguments.

  • Fixes ConsensusTopicInfoQuery.setTopicId() not supporting ConsensusTopicIdLike.

Deprecated

  • Deprecates Client.maxTransactionFee and Client.maxQueryPayment getters.

  • Deprecates ConsensusTopicCreateTransaction.setAutoRenewAccount() was simply renamed to ConsensusTopicCreateTransaction.setAutoRenewAccountId().

  • Deprecates ConsensusTopicCreateTransaction.setExpirationTime() with no replacement.

  • Deprecates ConsensusTopicCreateTransaction.setValidStart() with no replacement.

  • Deprecates ConsensusTopicUpdateTransaction.setAutoRenewAccount() with no replacement.

v1.1.8

Fixed

  • TransactionRecord.getContractCallResult and TransactionRecord.getContractExecuteResult were swapped internally and neither worked before.

  • Export ConsensusMessageSubmitTransaction.

v1.1.7

Fixed

  • Do not provide (and sign) a payment transaction for AccountBalanceQuery. It is not required.

v1.1.6

Added

  • Add TransactionBuilder.getCost() to return a very close estimate of the transaction fee (within 1%).

  • Add additional error classes to allow more introspection on errors:

    • HederaPrecheckStatusError - Thrown when the transaction fails at the node (the precheck)
    • HederaReceiptStatusError - Thrown when the receipt is checked and has a failing status. The error object contains the full receipt.
    • HederaRecordStatusError - Thrown when the record is checked and it has a failing status. The error object contains the full record.
  • console.log(obj) now prints out nice debug information for several types in the SDK including receipts

v1.1.5

Added

  • Add TransactionReceipt.getConsensusTopicId().

  • Add TransactionReceipt.getConsensusTopicRunningHash().

  • Add TransactionReceipt.getConsensusTopicSequenceNumber().

  • Adds support for addresses with a leading 0x prefix with ContractFunctionParams.addAddress().

Deprecated

  • Deprecates Client.putNode(). Use Client.replaceNodes() instead.

  • Depreactes Transaction.getReceipt() and Transaction.getRecord(). Use TransactionId.getReceipt() or TransactionId.getRecord() instead. The execute method on Transaction returns a TransactionId.

  • Deprecates ConsensusSubmitMessageTransaction. This was renamed to ConsensusMessageSubmitTransaction to match the Java SDK.

v1.1.2

Fixed

v1.1.1

Fixed

  • RECEIPT_NOT_FOUND is properly considered and internally retried within TransactionReceiptQuery

v1.1.0

Fixed

  • Contract parameter encoding with BigNumbers

Added

Add support for Hedera Consensus Service (HCS).

  • Add ConsensusTopicCreateTransaction, ConsensusTopicUpdateTransaction, ConsensusTopicDeleteTransaction, and ConsensusMessageSubmitTransaction transactions

  • Add ConsensusTopicInfoQuery query (returns ConsensusTopicInfo)

  • Add MirrorClient and MirrorConsensusTopicQuery which can be used to listen for HCS messages from a mirror node.

Changed

Minor version bumps may add deprecations as we improve parity between SDKs or fix reported issues. Do not worry about upgrading in a timely manner. All v1+ APIs will be continuously supported.

  • Deprecated SystemDelete#setId; replaced with SystemDelete#setFileId or SystemDelete#setContractId

  • Deprecated SystemUndelete#setId; replaced with SystemUndelete#setFileId or SystemUndelete#setContractId

  • Deprecated Hbar.of(val); replaced with new Hbar(val)

  • Deprecated FreezeTransaction#setStartTime(Date); replaced with FreezeTransaction#setStartTime(hour: number, minute: number)

  • Deprecated FreezeTransaction#setEndTime(Date); replaced with FreezeTransaction#setEndTime(hour: number, minute: number)

  • All previous exception types are no longer thrown. Instead there are a set of new exception types to match the Java SDK.

    • HederaError becomes HederaStatusError
    • ValidationError becomes LocalValidationError
    • TinybarValueError becomes HbarRangeError
    • MaxPaymentExceededError becomes MaxQueryPaymentExceededError
    • BadKeyError is a new exception type when attempting to parse or otherwise use a key that doesn't look like a key

v1.0.1

Added

  • Allow passing a string for a private key in Client.setOperator

Fixed

  • Correct list of testnet node addresses

v1.0.0

No significant changes since v1.0.0-beta.5

v1.0.0-beta.5

Fixed

  • Fix getCost for entity Info queries where the entity was deleted

Added

  • Add support for unsigned integers (incl. Arrays) for contract encoding and decoding

  • Add AccountUpdateTransaction.setReceiverSignatureRequired

  • Add AccountUpdateTransaction.setProxyAccountId

Changed

  • Rename ContractExecuteTransaction.setAmount() to ContractExecuteTransaction.setPayableAmount()

v1.0.0-beta.4

Added

  • Client.forTestnet makes a new client configured to talk to TestNet (use .setOperator to set an operater)

  • Client.forMainnet makes a new client configured to talk to Mainnet (use .setOperator to set an operater)

Changed

  • Renamed TransactionReceipt.accountId, TransactionReceipt.contractId, TransactionReceipt.fileId, and TransactionReceipt.contractId to TransactionReceipt.getAccountId(), etc. to add an explicit illegal state check as these fields are mutually exclusive

  • Renamed TransactionRecord.contractCallResult to TransactionRecord.getContractExecuteResult()

  • Renamed TransactionRecord.contractCreateResult to TransactionRecord.getContractCreateResult()

v1.0.0-beta.3

Changed

  • TransactionBuilder.setMemo is renamed to TransactionBuilder.setTransactionMemo to avoid confusion as there are 2 other kinds of memos on transactions

Fixed

  • Fix usage on Node versions less than 12.x

v1.0.0-beta.2

Changed

  • CallParams is removed in favor of ContractFunctionParams and closely mirrors type names from solidity

    • addInt32
    • addInt256Array
    • addString
    • etc.
  • ContractFunctionResult now closely mirrors the solidity type names

    • getInt32
    • etc.
  • setFunctionParams(params) on ContractCallQuery and ContractExecuteTransaction is now setFunction(name, params)

  • ContractLogInfo.topicList -> ContractLogInfo.topics

  • FileInfo.deleted -> FileInfo.isDeleted

  • FileContentsQuery.execute now directly returns Uint8Array

  • ContractRecordsQuery.execute now directly returns TransactionRecord[]

  • AccountAmount.amount (String) -> AccountAmount.amount (Hbar)

  • TransactionReceipt

    • receiverSigRequired -> isReceiverSignatureRequired
    • autoRenewPeriodSeconds -> autoRenewPeriod

Fixed

  • Remove incorrect local validation for FileCreateTransaction and FileUpdateTransaction

  • Any key fields on response types (e.g., AccountInfo) are now PublicKey and can be any of the applicable key types

  • Fix transaction back-off when BUSY is returned

  • Default autoRenewPeriod on ContractCreate appropriately

v0.8.0-beta.3

Changed

  • Client constructor takes the network as { network: ... } instead of { nodes: ... }

  • Transactions and queries do not take Client in the constructor; instead, Client is passed to execute.

  • Removed Transaction.executeForReceipt and Transaction.executeForRecord

    These methods have been identified as harmful as they hide too much. If one fails, you do not know if the transaction failed to execute; or, the receipt/record could not be retrieved. In a mission-critical application, that is, of course, an important distinction.

    Now there is only Transaction.execute which returns a TransactionId. If you don't care about waiting for consensus or retrieving a receipt/record in your application, you're done. Otherwise you can now use any TransactionId and ask for the receipt/record (with a stepped retry interval until consensus) with TransactionId.getReceipt and TransactionId.getRecord.

    v0.7.x and below

    let newAccountId = new AccountCreateTransaction(hederaClient)
        .setKey(newKey.publicKey)
        .setInitialBalance(1000)
        .executeForReceipt().accountId; // TransactionReceipt

    v0.8.x and above

    let newAccountId = new AccountCreateTransaction()
        .setKey(newKey.publicKey)
        .setInitialBalance(1000)
        .execute(hederaClient) // TranactionId
        .getReceipt(hederaClient).accountId; // TransactionReceipt
  • Rename setPaymentDefault to setPaymentAmount

Added

  • All transaction and query types that were in the Java SDK but not yet in the JS SDK (GetBySolidityIdQuery, AccountStakersQuery, etc.)

  • TransactionId.getReceipt

  • TransactionId.getRecord

  • Transaction.toString. This will dump the transaction (incl. the body) to a stringified JSON object representation of the transaction. Useful for debugging.

  • A default of 1 Hbar is now set for both maximum transaction fees and maximum query payments.

  • Smart Contract type encoding and decoding to match Java.

  • To/From string methods on AccountId, FileId, etc.

  • Internal retry handling for Transactions and Queries (incl. BUSY)

Removed

  • Transaction and Query types related to claims