LoginSignup
1
0

More than 5 years have passed since last update.

Ethereumのトランザクションの流れ(4) 補足

Posted at

Ethereumのトランザクションの流れ(3) バックエンド編 2. transaction実行編トランザクションを実行した結果の構造体は下記のようになります。

types.Message{
  to: &common.Address{
    0xf3, 0x0a, 0x67, 0x01, 0xff, 0x5e, 0x70, 0xaa, 0xbf, 0x27, 0xf4, 0x74, 0xb3, 0xb4, 0xae, 0x72,
    0x56, 0x3c, 0x32, 0x17,
  },
  from: common.Address{
    0x0b, 0xe2, 0x6a, 0x38, 0x8d, 0x05, 0x24, 0xee, 0xb0, 0xaf, 0xbc, 0x08, 0xee, 0x01, 0x5e, 0x08,
    0xe8, 0x3e, 0x80, 0x2c,
  },
  nonce:  0x0000000000000009,
  amount: &big.Int{
    neg: false,
    abs: big.nat{},
  },
  gasLimit: 0x0000000000015f90,
  gasPrice: &big.Int{
    neg: false,
    abs: big.nat{
      0x1,
    },
  },
  data: []uint8{
    0xa9, 0x05, 0x9c, 0xbb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0xd9, 0x86, 0xf2, 0xcb, 0x72, 0x53, 0x0f, 0x45, 0xbf, 0xd5, 0x75, 0x19, 0x6f, 0xba, 0xd7, 0x06,
    0x4c, 0x45, 0x4e, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x64,
  },
  checkNonce: true,
}

&types.Receipt{
  PostState: []uint8{
    0x31, 0x4e, 0x7e, 0x8c, 0x70, 0x77, 0x3e, 0xe2, 0xf9, 0xdc, 0x61, 0xbe, 0x37, 0x4c, 0xc6, 0xc5,
    0x6e, 0xea, 0x28, 0x53, 0x65, 0xa4, 0x81, 0xa2, 0xe1, 0x27, 0x9d, 0xb1, 0xe1, 0xcf, 0x97, 0x52,
  },
  Status:            0x0000000000000001,
  CumulativeGasUsed: 0x0000000000008ec3,
  Bloom:             types.Bloom{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
    0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00,
    0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  },
  Logs: []*types.Log{
    &types.Log{
      Address: common.Address{
        0xf3, 0x0a, 0x67, 0x01, 0xff, 0x5e, 0x70, 0xaa, 0xbf, 0x27, 0xf4, 0x74, 0xb3, 0xb4, 0xae, 0x72,
        0x56, 0x3c, 0x32, 0x17,
      },
      Topics: []common.Hash{
        common.Hash{
          0xdd, 0xf2, 0x52, 0xad, 0x1b, 0xe2, 0xc8, 0x9b, 0x69, 0xc2, 0xb0, 0x68, 0xfc, 0x37, 0x8d, 0xaa,
          0x95, 0x2b, 0xa7, 0xf1, 0x63, 0xc4, 0xa1, 0x16, 0x28, 0xf5, 0x5a, 0x4d, 0xf5, 0x23, 0xb3, 0xef,
        },
        common.Hash{
          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0xe2, 0x6a, 0x38,
          0x8d, 0x05, 0x24, 0xee, 0xb0, 0xaf, 0xbc, 0x08, 0xee, 0x01, 0x5e, 0x08, 0xe8, 0x3e, 0x80, 0x2c,
        },
        common.Hash{
          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd9, 0x86, 0xf2, 0xcb,
          0x72, 0x53, 0x0f, 0x45, 0xbf, 0xd5, 0x75, 0x19, 0x6f, 0xba, 0xd7, 0x06, 0x4c, 0x45, 0x4e, 0xcc,
        },
      },
      Data: []uint8{
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64,
      },
      BlockNumber: 0x0000000000000068,
      TxHash:      common.Hash{
        0x9c, 0x57, 0x34, 0x8d, 0x6b, 0xd5, 0x2a, 0xc7, 0x0d, 0x8e, 0x78, 0xbe, 0xb1, 0xfc, 0xe3, 0x60,
        0xf4, 0x33, 0x9e, 0xf9, 0x95, 0x93, 0x30, 0x55, 0xf7, 0xec, 0xce, 0xa3, 0x4e, 0x87, 0xb6, 0x2e,
      },
      TxIndex:   0x0,
      BlockHash: common.Hash{
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
      },
      Index:   0x0,
      Removed: false,
    },
  },
  TxHash: common.Hash{
    0x9c, 0x57, 0x34, 0x8d, 0x6b, 0xd5, 0x2a, 0xc7, 0x0d, 0x8e, 0x78, 0xbe, 0xb1, 0xfc, 0xe3, 0x60,
    0xf4, 0x33, 0x9e, 0xf9, 0x95, 0x93, 0x30, 0x55, 0xf7, 0xec, 0xce, 0xa3, 0x4e, 0x87, 0xb6, 0x2e,
  },
  ContractAddress: common.Address{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00,
  },
  GasUsed: 0x0000000000008ec3,
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0