cmioc encode input
Encodes an input according to the EvmAdvance
function signature.
cmioc encode input \
--chain-id 1 \
--app-contract 0x70ac08179605AF2D9e75782b8DEcDD3c22aA4D0C \
--msg-sender 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
--block-number 42 \
--block-timestamp 70000 \
--prev-randao 123456789 \
--index 10 \
--payload 0xdeadbeef
Required options
--chain-id <id>
uint256
The EIP-155 ID of the chain to which the InputBox
contract was deployed.
--app-contract <address>
address
The address of the Application
contract to which the input is destined.
--msg-sender <address>
address
The address of the account that called the addInput
function on the InputBox
contract.
In the case of a deposit input, this should be the address of the appropriate portal contract.
--block-number <num>
uint256
The number of the block in which the input was added.
--block-timestamp <ts>
uint256
The timestamp of the block in which the input was added.
--prev-randao <num>
uint256
The latest RANDAO mix of the post beacon state of the previous block. See EIP-4399 for notes on how to safely use this value as a source of randomness.
--index <num>
uint256
The zero-based index of the input in the input box of the application.
--payload <blob>
bytes
The actual data being transmitted to the application. From the perspective of the smart contracts and the node, this is an opaque blob. The application is free to specify any encoding for input payloads.
Other options
-b, --binary
Write the blob to standard output in binary format.
-h, --help
Display help for command.