Skip to content

v5.2.3

Compare
Choose a tag to compare
@joticajulian joticajulian released this 27 Nov 06:43
· 70 commits to main since this release

features:

  • New function in the Provider class called getNextNonce. It is used to query the actual nonce, and compute the next one. This is useful when creating a new transaction.

The motivation of this feature is related to the use of Koilib + Kondor. When you get a signer from Kondor, this signer comes with its own provider (to get transaction parameters, and to submit transactions). This is a problem when you are not using the same network as the one defined in Kondor, for instance when Kondor is connected to mainnet and you are targeting testnet. To solve this issue the developers normally use their owns providers to compute the correct chain_id, account_rc, and nonce. However, the nonce requires more steps when you are submitting transactions (increase nonce and encode it in base64url). The new getNextNonce function simplifies this computation.