ledger getBlock <number>
Command to get a block by number.
Parameters:
- number: Block number
Examples:
ledger getBlock 123
ledger getTransactionCount <address>
Command to get the number of transactions of a particular address.
Parameters:
- address: Ethereum address
Examples:
ledger getTransactionCount 0x2fCbc96c55e57bed5ae8BC533EF77b977Dc482d7
ledger getChainId
Command to get the chain id of the network.
Examples:
ledger getChainId
ledger getTransaction <id>
Command to get a transaction by its ID.
Parameters:
- id: Transaction ID
Examples:
ledger getTransaction 0x2fCb...82d7
ledger getTransactionReceipt <id>
Command to get the receipt of a particular transaction. It also displays the revert reason for failed transactions.
Parameters:
- id: Transaction ID
Examples:
ledger getTransactionReceipt 0x2fCb...482d7
ledger sendTransaction <signedTransaction>
Command to send transactions to the blockchain.
Parameters:
- signedTransaction: signed transaction in raw format.
Examples:
ledger sendTransaction 0x2fCb...482d7 0x123456
proxyledger <...>
The command proxyledger
has the same commands as ledger
with the difference that it will call the blockchain directly without going through Ledger API. It can also be used to interact with the smart contracts directly. To enable this feature set the corresponding provider in TEST_BESU_PROVIDER
or PILOT_BESU_PROVIDER
in the env variables. This command should not be used by externals.
Examples:
proxyledger timestamp timestampHashes
proxyledger timestamp build-timestampHashes
proxyledger tir insertIssuer did:ebsi:zkqR9GCLrLYbkubAjuqQZAz {"institution":"eu"}
proxyledger getTransactionReceipt 0x2fCb...482d7