淘先锋技术网

首页 1 2 3 4 5 6 7

Architect

Genesis

Difficulty

External Account

Create

List

Balance

Unlock

Mining

Transfer Transaction

Transaction

FieldTypeDescription
fromAddressthe payer’s external account address
toAddressthe receiver’s external account address
valueether, wei, dai, szablemoney to transfer
nonceintegerincremental number for a account, to identify each tx created by a account
blockHashhash256hash of mined block, 0x000… if not mined yet
blockNumberintegersequence number of mined block, 0 if not mined yet
gasintegerfee = gas * gasPrice, declared only, changes may return to sender if (fee - gasUsed) > 0
gasPriceether, wei ,dai, etcfee = gas * gasPrice
transactionIndexintposition index in a block

TransactionReceipt

FieldTypeDescription
blockHashhash256
blockNumberint
contractAddressAddressnull if in transfer transaction
cumulativeGasUsedether?
fromAddress
gasUsedetheractually used fee
logsArray of ??
rootHash256?
toAddress
transactionHashHash256
transactionIndexint

Contract Creation Transaction

Contract Account

External Account Call A Contract

Contract Calls Another Contract

Virtual Machine

Solc etc: From High-level script to ByteCodes(OpCodes)

Database

Sorted Table(*.sst, *.ldb)

Operation sequence(*.log)

Mainfest

Current

LOG file

Export and Import

Block ⇒ DB

DB ⇒ Block

$ ./geth export blocks.-.chain
$ hexdump -Cv blocks.-.chain

Appendix

  1. LevelDB
  2. leveldb实现解析
  3. Bloom Filter
  4. Frontier.and.its.followers

Notes

  1. Transfer Transaction: directly operate DB by node miner.

  2. Transaction to call a contract: indirectly operate DB by VM with predefined VM ByteCode compiled from High-Level script).