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 TransactionsResponse
- 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 {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
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 {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
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 {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
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 CoinInfoResponse struct {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
Result struct {
Name string `json:"name"`
Symbol string `json:"symbol"`
Volume string `json:"volume"`
Crr string `json:"crr"`
ReserveBalance string `json:"reserve_balance"`
} `json:"result"`
}
type EstimateCoinBuyResponse ¶
type EstimateTxResponse ¶
type EventsResponse ¶
type GasResponse ¶
type SendTransactionResponse ¶
type SendTransactionResponse struct {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
Result *SendTransactionResult `json:"result"`
}
type SendTransactionResult ¶
type StatusResponse ¶
type StatusResponse struct {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
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"`
Height string `json:"height"`
From string `json:"from"`
Type uint8 `json:"type"`
Nonce string `json:"nonce"`
GasPrice uint32 `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"`
IData interface{} `json:"-"`
Tags *map[string]string `json:"tags"`
}
type TransactionResponse ¶
type TransactionResponse struct {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
Result Transaction `json:"result"`
}
type TransactionsResponse ¶ added in v1.3.0
type TransactionsResponse struct {
Jsonrpc string `json:"jsonrpc"`
ID string `json:"id"`
Error *ErrorData `json:"error"`
Result []Transaction `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.