chainlib-eth

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

eth-gas.examples.groff (3557B)


      1 .P
      2 In the follwing we willconsaider transactions signed by the private key for address Eb3907eCad74a0013c259D5874AE7f22DcBcC95C:
      3 
      4 .SS Offline transaction
      5 
      6 .EX
      7 $ eth-gas -y <\fIkey_file_path\fP> -a 00000000000000000000000000000000DeaDBeef --fee-price 100000000000 --fee-limit 21000 --nonce 42 1024
      8 from: Eb3907eCad74a0013c259D5874AE7f22DcBcC95C
      9 to: 00000000000000000000000000000000DeaDBeef
     10 nonce: 42
     11 gasPrice: 100000000000 (100 gwei)
     12 gas: 21000
     13 value: 1024 (0.000000000000001024 eth)
     14 data: 0x
     15 v: 37
     16 recovery_byte: 0
     17 r: 0x0c97432d4db724e66a56f7ced04174cf6129e2555709f206dd6d3a156b4af23a
     18 s: 0x287862548314a59c7ca6139eee8b51400eb40a67b08b8dc13d67302abecccae0
     19 chainId: 1
     20 hash: 0x003030af05460633e85b16fff7a17607818dc67e58f89396e5491ad6f5438971
     21 hash_unsigned: 0xa59cf9e5438b186de381892b7879ce66476d5469478c7148880da5d553ade651
     22 src: 0xf8662a85174876e8008252089400000000000000000000000000000000deadbeef8204008025a00c97432d4db724e66a56f7ced04174cf6129e2555709f206dd6d3a156b4af23aa0287862548314a59c7ca6139eee8b51400eb40a67b08b8dc13d67302abecccae0
     23 .EE
     24 
     25 .SS Offline transaction with arbitrary data
     26 
     27 .EX
     28 $ eth-gas -y <\fIkey_file_path\fP> -a 00000000000000000000000000000000DeaDBeef --fee-price 100000000000 --fee-limit 21000 --nonce 42 --data 0x2a 1024 
     29 from: Eb3907eCad74a0013c259D5874AE7f22DcBcC95C
     30 to: 00000000000000000000000000000000DeaDBeef
     31 nonce: 42
     32 gasPrice: 100000000000 (100 gwei)
     33 gas: 21000
     34 value: 1024 (0.000000000000001024 eth)
     35 data: 0x2a
     36 v: 37
     37 recovery_byte: 0
     38 r: 0x800b6982d3f178201d7e7e7693b9c90b3fbcd54d04b6fff5284c81101fad54dd
     39 s: 0x3b86d710d31ac74b58f0040b0f51fdb6bdbabea62a68cf99c05e765e7e81de87
     40 chainId: 1
     41 hash: 0xede30052befd80760c5ab543babdccc3d97fe90523e5710d77220155a82faa47
     42 hash_unsigned: 0xad82d8cf1a412541c8a94ef71c50e9172c3a37853af036adee2f55c577da9770
     43 src: 0xf8662a85174876e8008252089400000000000000000000000000000000deadbeef8204002a25a0800b6982d3f178201d7e7e7693b9c90b3fbcd54d04b6fff5284c81101fad54dda03b86d710d31ac74b58f0040b0f51fdb6bdbabea62a68cf99c05e765e7e81de87
     44 .EE
     45 
     46 .SS Offline transaction with wire-format output
     47 
     48 .EX
     49 $ eth-gas -y <\fIkey_file_path\fP> -a 00000000000000000000000000000000DeaDBeef --fee-price 100000000000 --fee-limit 21000 --nonce 42 --raw 1024
     50 0xf8662a85174876e8008252089400000000000000000000000000000000deadbeef8204008025a00c97432d4db724e66a56f7ced04174cf6129e2555709f206dd6d3a156b4af23aa0287862548314a59c7ca6139eee8b51400eb40a67b08b8dc13d67302abecccae0
     51 .EE
     52 
     53 .SS Sign transaction for a different network
     54 
     55 .EX
     56 $ eth-gas -i evm:london:3:rinkeby -y /home/lash/src/contrib/grassrootseconomics/cic-dev/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c  -a 00000000000000000000000000000000DeaDBeef --fee-price 100000000000 --fee-limit 21000 --nonce 42 --data 0x2a 1024 
     57 from: Eb3907eCad74a0013c259D5874AE7f22DcBcC95C
     58 to: 00000000000000000000000000000000DeaDBeef
     59 nonce: 42
     60 gasPrice: 100000000000 (100 gwei)
     61 gas: 21000
     62 value: 1024 (0.000000000000001024 eth)
     63 data: 0x2a
     64 v: 41
     65 recovery_byte: 0
     66 r: 0xe522c25784111a512cbf46f883e3bdacffc2cdbd465fa1042892c28fc10ee054
     67 s: 0x5f84eb51a0c9871cfcedaba4e6274b300014899b3a2fec9292de6fe5919bcd07
     68 chainId: 3
     69 hash: 0x771200a20072294a6a843b89b98d5f868c9aa94da75dacf6a9f5834dfd241199
     70 hash_unsigned: 0xa5f9e8a5cda6985d81f4129955b7529f48ecb54728badac16ec550384e3a2bcc
     71 src: 0xf8662a85174876e8008252089400000000000000000000000000000000deadbeef8204002a29a0e522c25784111a512cbf46f883e3bdacffc2cdbd465fa1042892c28fc10ee054a05f84eb51a0c9871cfcedaba4e6274b300014899b3a2fec9292de6fe5919bcd07
     72 .EE
     73 
     74 .P
     75 The wire-format can in turn be decoded using the \fBeth-decode\fP tool)