Commands for signing transactions and decoding transaction data.
compute signTransaction <unsignedTransaction>
Command to sign a transaction with the private key defined in using user
. It's also possible to load it from the saved variables by referencing its name.
Parameters:
- unsignedTransaction: JSON with the unsigned transaction (ethereum)
Examples:
compute signTransaction 0xf9...
compute signTransaction utx
sgnTx: compute signTransaction utx
compute decodeLogs <data>
Command to decode the logs of a transaction receipt. It is also possible to specify the transaction hash and the command will query the corresponding receipt.
Parameters:
- data: Transaction hash, receipt or array of logs
compute decodeTransaction <data>
Command to decode the arguments of a transaction. It is also possible to specify the transaction hash and the command will query the transaction.
Parameters:
- data: Transaction hash, transaction object, or raw transaction in hex format.
compute timestampId <hash>
Command to get the multibase64url of the sha256 of a specific hash, which corresponds with the protocol used in Timestamp API to reference the IDs.
Parameters:
- hash: sha256 of the timestamped data
Examples:
compute timestampId 0x37926887dc319ac87cda01caf411bccb9ab8933d97cf3c2d57d3e13aa8bad580
compute recordId <address> <blockNumber> <hash>
Command to compute the record ID stored in Timestamp API. This record is computed from the address that timestamped the data, the block number, and hash of the data.
Important note: This record ID is computed from the first version submitted to the blockchain.
Parameters:
- address: Ethereum address
- blockNumber: Block number of the timestamp
- hash: sha256 of the timestamped data
Examples:
compute recordId 0xecEd9072Fb1c3aD7b9D4Aa5b47A5EB2280908793 123456 0x37926887dc319ac87cda01caf411bccb9ab8933d97cf3c2d57d3e13aa8bad580