transaction
This module provides methods for fetching transactions and sending signed transaction payload. The module is accessed from the global variable tx
.
get
Gets the address of all keys stored on the keystore of the node.
Parameters
hash
-String
: The transaction hash
Returns
Object
: The result object data
- Object
: The transaction object. status
- String
: The status of the transaction.
in_mempool
means the transaction is in the mempool.in_pushpool
means the transaction is in the pushpoolin_block
means the transaction has been processed.
Example
send
Send a signed transaction payload to the network.
Parameters
payload
-Object
: The transaction payload
Returns
Object
- The result object
hash
-String
: A 32 bytes transaction hash.
Example
Last updated