Documentation
¶
Index ¶
- type BalanceAndNonce
- type BlockList
- type BlockchainInfo
- type ContractValue
- type DSBlock
- type DsHeader
- type HashAndNum
- type MicroBlockInfo
- type MinerInfo
- type ShardInfo
- type ShardingStructure
- type State
- type Transaction
- type TransactionException
- type TransactionMessage
- type TransactionReceipt
- type Transactions
- type Transition
- type TxBlock
- type TxBlockBody
- type TxBlockHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceAndNonce ¶
type BlockList ¶
type BlockList struct {
Data []HashAndNum `json:"data"`
MaxPages int `json:"maxPages"`
}
type BlockchainInfo ¶
type ContractValue ¶
type HashAndNum ¶
type MicroBlockInfo ¶
type ShardingStructure ¶
type ShardingStructure struct {
NumPeers []int
}
type Transaction ¶
type TransactionException ¶ added in v1.1.0
type TransactionMessage ¶ added in v1.1.0
type TransactionMessage struct {
Amount string `json:"_amount"`
Receipt string `json:"_receipt"`
Tag string `json:"_tag"`
Params []ContractValue `json:"params"`
}
type TransactionReceipt ¶
type TransactionReceipt struct {
Accept bool `json:"accept"`
Errors interface{} `json:"errors"`
Exceptions []TransactionException `json:"exceptions"`
Success bool `json:"success"`
CumulativeGas string `json:"cumulative_gas"`
EpochNum string `json:"epoch_num"`
EventLogs []interface{} `json:"event_logs"`
Transitions []Transition `json:"transitions"`
}
type Transactions ¶
type Transactions struct {
TxnHashes []string
}
type Transition ¶ added in v1.1.0
type Transition struct {
Accept bool `json:"accept"`
Addr string `json:"addr"`
Depth int `json:"depth"`
Msg TransactionMessage `json:"msg"`
}
type TxBlock ¶
type TxBlock struct {
Header TxBlockHeader `json:"header"`
Body TxBlockBody `json:"body"`
}
type TxBlockBody ¶
type TxBlockBody struct {
BlockHash string
HeaderSign string
MicroBlockInfos []MicroBlockInfo
}
Click to show internal directories.
Click to hide internal directories.