All utility methods
All method packed into the utils object.
Method | Parameters | Return | Description |
---|---|---|---|
getAddressFromPrivateKey |
|
| Gets the address for the given PK based on the ED25519 curve and bech32 address conversion. |
generateKeyPair |
|
| Generates a new privateKey/Address pair, based on the ED25519 curve and bech32 address conversion. |
getProviders |
| Gets the current provider object. | |
setProviders |
|
| Sets the provider object. |
broadcastTransactions |
|
| Broadcasts an array of transactions to the provided node. |
decodeTransaction |
|
| Decodes a built transaction to a more human readable json. |
transactionsProcessed |
|
| Resolves when all the broadcasted transactions are on chain, rejects when the try limit is reached. |
accountsReady |
|
| Resolves when all the accounts in the array are initialized. |
validateSignature |
|
| Checks if a signature is compatible with a given address and message. |
decodeAddress |
|
| Decodes and address to an |
toHex |
|
| Helper method to convert |
Last updated