Skip to content

cmioc encode voucher

Encodes a voucher according to the Voucher function signature. A voucher represents a CALL instruction to be performed in the context of the Application contract.

Command
cmioc encode voucher \
    --destination 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
    --value 1000000000000000000 \
    --payload 0xfafafa

Required options

--destination <address>

address

The Ethereum address to be called.

--value <num>

uint256

The amount of Wei to be passed along to the call.

--payload <blob>

bytes

The data to be passed along the call. If the destination address is that of a Solidity smart contract, this data generally encodes a Solidity function call.

Other options

-b, --binary

Write the blob to standard output in binary format.

-h, --help

Display help for command.