Documentation ¶
Index ¶
- Constants
- type Peer
- type Receipt
- type Response
- type Result
- type ResultBlockchainInfo
- type ResultBroadcastTx
- type ResultCall
- type ResultDumpConsensusState
- type ResultDumpStorage
- type ResultEvent
- type ResultGenPrivAccount
- type ResultGenesis
- type ResultGetAccount
- type ResultGetBlock
- type ResultGetName
- type ResultGetStorage
- type ResultListAccounts
- type ResultListNames
- type ResultListUnconfirmedTxs
- type ResultListValidators
- type ResultNetInfo
- type ResultSignTx
- type ResultStatus
- type StorageItem
Constants ¶
View Source
const ( ResultTypeGetStorage = byte(0x01) ResultTypeCall = byte(0x02) ResultTypeListAccounts = byte(0x03) ResultTypeDumpStorage = byte(0x04) ResultTypeBlockchainInfo = byte(0x05) ResultTypeGetBlock = byte(0x06) ResultTypeStatus = byte(0x07) ResultTypeNetInfo = byte(0x08) ResultTypeListValidators = byte(0x09) ResultTypeDumpConsensusState = byte(0x0A) ResultTypeListNames = byte(0x0B) ResultTypeGenPrivAccount = byte(0x0C) ResultTypeGetAccount = byte(0x0D) ResultTypeBroadcastTx = byte(0x0E) ResultTypeListUnconfirmedTxs = byte(0x0F) ResultTypeGetName = byte(0x10) ResultTypeGenesis = byte(0x11) ResultTypeSignTx = byte(0x12) ResultTypeEvent = byte(0x13) // so websockets can respond to rpc functions )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultBlockchainInfo ¶
type ResultBroadcastTx ¶
type ResultBroadcastTx struct {
Receipt Receipt `json:"receipt"`
}
type ResultCall ¶
type ResultDumpStorage ¶
type ResultDumpStorage struct { StorageRoot []byte `json:"storage_root"` StorageItems []StorageItem `json:"storage_items"` }
type ResultEvent ¶
type ResultGenPrivAccount ¶
type ResultGenPrivAccount struct {
PrivAccount *acm.PrivAccount `json:"priv_account"`
}
type ResultGenesis ¶
type ResultGenesis struct {
Genesis *stypes.GenesisDoc `json:"genesis"`
}
type ResultGetAccount ¶
type ResultGetBlock ¶
type ResultGetName ¶
type ResultGetName struct {
Entry *types.NameRegEntry `json:"entry"`
}
type ResultGetStorage ¶
type ResultListAccounts ¶
type ResultListNames ¶
type ResultListNames struct { BlockHeight int `json:"block_height"` Names []*types.NameRegEntry `json:"names"` }
type ResultListValidators ¶
type ResultNetInfo ¶
type ResultSignTx ¶
type ResultStatus ¶
type ResultStatus struct { NodeInfo *types.NodeInfo `json:"node_info"` GenesisHash []byte `json:"genesis_hash"` PubKey acm.PubKey `json:"pub_key"` LatestBlockHash []byte `json:"latest_block_hash"` LatestBlockHeight int `json:"latest_block_height"` LatestBlockTime int64 `json:"latest_block_time"` // nano }
type StorageItem ¶
Click to show internal directories.
Click to hide internal directories.