chainlib-eth

Ethereum implementation of the chainlib interface
Info | Log | Files | Refs | README | LICENSE

eth-encode.examples.groff (1128B)


      1 .SS Build a signed ERC20 transfer in wire format, setting nonce and fee details manually.
      2 .EX
      3 $ eth-encode -f bin -y <\fIkey_file_path\fP> -e <\fItoken_address\fP> --fee-price 1000000000 --fee-limit 100000 --nonce 42 --signature transfer a:00000000000000000000000000000000DeaDBeef u:1024
      4 .EE
      5 
      6 .SS Build Smart contract call with method signature, retrieving fee and nonce settings from rpc
      7 
      8 \fBeth-encode\fP --mode call -f rpc -e <\fItoken_address\fP> --signature balanceOf -p <\fIrpc_endpoint\fP> a:deadbeef
      9 
     10 .SS Build smart contract ERC20 transfer argument with signature
     11 .EX
     12 \fBeth-encode\fP --mode arg --signature transfer a:00000000000000000000000000000000DeaDBeef u:1024
     13 .TP Outupt
     14 a9059cbb00000000000000000000000000000000000000000000000000000000deadbeef0000000000000000000000000000000000000000000000000000000000000400
     15 .EE
     16 
     17 .SS Build smart contract ERC20 transfer argument types without signature
     18 .EX
     19 \fBeth-encode\fP --mode arg a:00000000000000000000000000000000DeaDBeef u:1024
     20 .TP Output
     21 00000000000000000000000000000000000000000000000000000000deadbeef0000000000000000000000000000000000000000000000000000000000000400
     22 .EE