Documentation
¶
Index ¶
- type AddressResponse
- type Balance
- type BalancesResponse
- type BlockCandidatesResponse
- type BlockResponse
- type CandidateResponse
- type CoinInfoResponse
- type ErrorData
- type EstimateCoinBuyResponse
- type EstimateCoinSellAllResponse
- type EstimateCoinSellResponse
- type EstimateTxResponse
- type EventsResponse
- type GasResponse
- type Response
- type SendTransactionResponse
- type SendTransactionResult
- type Stake
- type StatusResponse
- type Transaction
- type TransactionResponse
- type Validator
- type ValidatorsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressResponse ¶
type BalancesResponse ¶
type BlockCandidatesResponse ¶
type BlockCandidatesResponse struct {
Response
Result []struct {
RewardAddress string `json:"reward_address"`
OwnerAddress string `json:"owner_address"`
TotalStake string `json:"total_stake"`
PubKey string `json:"pub_key"`
Commission string `json:"commission"`
CreatedAtBlock string `json:"created_at_block"`
Status uint8 `json:"status"`
Stakes []Stake `json:"stakes"`
} `json:"result"`
}
type BlockResponse ¶
type BlockResponse struct {
Response
Result struct {
Hash string `json:"hash"`
Size string `json:"size"`
Height string `json:"height"`
TxCount string `json:"num_txs"`
TotalTx string `json:"total_txs"`
Proposer string `json:"proposer"`
BlockReward string `json:"block_reward"`
Time time.Time `json:"time"`
Transactions []Transaction `json:"transactions"`
Validators []Validator `json:"validators"`
} `json:"result"`
}
type CandidateResponse ¶
type CandidateResponse struct {
Response
Result struct {
OwnerAddress string `json:"owner_address"`
RewardAddress string `json:"reward_address"`
CandidateAddress string `json:"candidate_address"`
TotalStake string `json:"total_stake"`
PubKey string `json:"pub_key"`
Commission string `json:"commission"`
CreatedAtBlock string `json:"created_at_block"`
Status uint8 `json:"status"`
Stakes []Stake `json:"stakes"`
} `json:"result"`
}
type CoinInfoResponse ¶
type EstimateCoinBuyResponse ¶
type EstimateTxResponse ¶
type EventsResponse ¶
type EventsResponse struct {
Response
Result struct {
Events []event `json:"events"`
} `json:"result"`
}
type GasResponse ¶
type SendTransactionResponse ¶
type SendTransactionResponse struct {
Response
Result *SendTransactionResult `json:"result"`
}
type SendTransactionResult ¶
type StatusResponse ¶
type StatusResponse struct {
Response
Result struct {
Version string `json:"version"`
LatestBlockHash string `json:"latest_block_hash"`
LatestAppHash string `json:"latest_app_hash"`
LatestBlockHeight string `json:"latest_block_height"`
LatestBlockTime time.Time `json:"latest_block_time"`
TmStatus struct {
NodeInfo struct {
ProtocolVersion struct {
P2P string `json:"p2p"`
Block string `json:"block"`
App string `json:"app"`
} `json:"protocol_version"`
ID string `json:"id"`
ListenAddr string `json:"listen_addr"`
Network string `json:"network"`
Version string `json:"version"`
Channels string `json:"channels"`
Moniker string `json:"moniker"`
Other struct {
TxIndex string `json:"tx_index"`
RPCAddress string `json:"rpc_address"`
} `json:"other"`
} `json:"node_info"`
SyncInfo struct {
LatestBlockHash string `json:"latest_block_hash"`
LatestAppHash string `json:"latest_app_hash"`
LatestBlockHeight string `json:"latest_block_height"`
LatestBlockTime time.Time `json:"latest_block_time"`
CatchingUp bool `json:"catching_up"`
} `json:"sync_info"`
ValidatorInfo struct {
Address string `json:"address"`
PubKey struct {
Type string `json:"type"`
Value string `json:"value"`
} `json:"pub_key"`
VotingPower string `json:"voting_power"`
} `json:"validator_info"`
} `json:"tm_status"`
} `json:"result"`
}
type Transaction ¶
type Transaction struct {
Hash string `json:"hash"`
From string `json:"from"`
Type uint8 `json:"type"`
Nonce string `json:"nonce"`
GasPrice string `json:"gas_price"`
GasCoin string `json:"gas_coin"`
GasUsed string `json:"gas_used"`
Gas string `json:"gas"`
Payload string `json:"payload"`
ServiceData string `json:"service_data"`
RawTx string `json:"raw_tx"`
Log *string `json:"log"`
Data json.RawMessage `json:"data"`
RawData interface{} `json:"-"`
Tags *map[string]string `json:"tags"`
}
type TransactionResponse ¶
type TransactionResponse struct {
Response
Result Transaction `json:"result"`
}
type ValidatorsResponse ¶
Click to show internal directories.
Click to hide internal directories.