Documentation
¶
Index ¶
- type BestBlockHashResponse
- type BlockCountResponse
- type BlockHashResponse
- type BlockRequest
- type BlockTemplate
- type ConnectionCountResponse
- type GetBlock
- type GetPeerInfoResponse
- type NetworkEndpoint
- type NetworkResponse
- type NodeInfoResponse
- type NodeResponse
- type NodeStatsResponse
- type RPCResponse
- type RawTransactionRequest
- type RawTransactionResponse
- type TransactionResponse
- type ValidateTransactionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestBlockHashResponse ¶
type BestBlockHashResponse struct {
*RPCResponse
Result string `json:"result"`
}
type BlockCountResponse ¶
type BlockCountResponse struct {
*RPCResponse
Result int `json:"result"`
}
type BlockHashResponse ¶
type BlockHashResponse struct {
*RPCResponse
Result string `json:"result"`
}
type BlockRequest ¶
type BlockRequest struct {
BlockHash interface{} `json:"block_hash"`
}
type BlockTemplate ¶
type ConnectionCountResponse ¶
type ConnectionCountResponse struct {
Result int
}
type GetBlock ¶
type GetBlock struct {
*RPCResponse
Confirmations int `json:"confirmations"`
DifficultyTarget int `json:"difficulty_target"`
Height int `json:"height"`
MerkleRoot int `json:"merkle_root"`
Nonce int `json:"nonce"`
PedersenMerkleRootHash int `json:"pedersen_merkle_root_hash"`
PreviousBlockHash string `json:"previous_block_hash"`
Proof string `json:"proof"`
Size int `json:"size"`
Time int `json:"time"`
Transactions []string `json:"transactions"`
Hash string `json:"hash"`
}
type GetPeerInfoResponse ¶
type GetPeerInfoResponse struct {
*RPCResponse
Peers []string `json:"peers"`
}
type NetworkEndpoint ¶
type NetworkEndpoint struct{}
type NetworkResponse ¶
type NetworkResponse struct {
NodeCount int `json:"node_count"`
ConnectionCount int `json:"connection_count"`
Density float64 `json:"density"`
AlgebraicConnectivity float64 `json:"algebraic_connectivity"`
DegreeCentralityDelta float64 `json:"degree_centrality_delta"`
Edges map[int]struct {
Source string `json:"source"`
Target string `json:"target"`
} `json:"edges"`
Vertices map[int]struct {
Addr string `json:"addr"`
IsBootNode bool `json:"is_bootnode"`
DegreeCentrality uint16 `json:"degree_centrality"`
EigenvectorCentrality float64 `json:"eigenvector_centrality"`
FiedlerValue float64 `json:"fiedler_value"`
} `json:"vertices"`
}
Block methods represents a Oleo block.
type NodeInfoResponse ¶
type NodeResponse ¶
type NodeResponse *RPCResponse
type NodeStatsResponse ¶
type NodeStatsResponse struct {
*RPCResponse
Connections struct {
AllAccepted uint64 `json:"connections.all_accepted"`
AllInitiated uint64 `json:"connections.all_initiated"`
AllRejected uint64 `json:"connections.all_rejected"`
ConnectionsConnectedPeers uint `json:"connections.connected_peers"`
ConnectionsConnectingPeers uint `json:"connections.connecting_peers"`
ConnectionsDisconnectedPeers uint `json:"connections.disconnected_peers"`
HandshakesFailuresInit uint `json:"handshakes.failures_init"`
HandshakesFailuresResp uint `json:"handshakes.failures_resp"`
HandshakesSuccessesInit uint `json:"handshakes.successes_init"`
HandshakesSuccessesResp uint `json:"handshakes.successes_resp"`
HandshakesTimeoutsInit uint `json:"handshakes.timeouts_init"`
HandshakesTimeoutsResp uint `json:"handshakes.timeouts_resp"`
InboundAllSuccesses uint `json:"inbound.all_successes"`
InboundAllFailures uint `json:"inbound.all_failures"`
InboundBlocks uint `json:"inbound.blocks"`
InboundGetblocks uint `json:"inbound.getblocks"`
InboundGetmemorypool uint `json:"inbound.getmemorypoolå"`
InboundGetpeers uint `json:"inbound.getpeers"`
InboundGetsync uint `json:"inbound.getsync"`
InboundMemorypool uint `json:"inbound.memorypool"`
InboundPeers uint `json:"inbound.peers"`
InboundPings uint `json:"inbound.pings"`
InboundPongs uint `json:"inbound.pongs"`
InboundSyncs uint `json:"inbound.syncs"`
InboundSyncblocks uint `json:"inbound.syncblocks"`
InboundTransactions uint `json:"inbound.transactions"`
InboundUnknown uint `json:"inbound.unknown"`
MiscBlockHeight uint `json:"misc.block_height"`
MiscBlocksMined uint `json:"misc.blocks_mined"`
MiscDuplicateBlocks uint `json:"misc.duplicate_blocks"`
MiscDuplicateSyncB uint `json:"misc.duplicate_sync_b"`
OutboundAllSuccesse uint `json:"outbound.all_successe"`
OutboundAllFailures uint `json:"outbound.all_failures"`
QueuesInbound uint `json:"queues.inbound"`
QueuesOutbound uint `json:"queues.outbound"`
}
}
type RPCResponse ¶
type RawTransactionRequest ¶
type RawTransactionRequest struct {
TransactionBytes string `json:"transaction_bytes"`
}
Transaction methods represents operations with transactions
type RawTransactionResponse ¶
type RawTransactionResponse struct {
TxID string `json:"txid"`
Size int `json:"size"`
OldSerialNumbers []string `json:"old_serial_numbers"`
NewCommitments []string `json:"new_commitments"`
Memo string `json:"memo"`
NetworkId int `json:"network_id"`
Digest string `json:"digest"`
TransactionProof string `json:"transaction_proof"`
ProgramCommitment string `json:"program_commitment"`
LocalDataRoot string `json:"local_data_root"`
ValueBalance int64 `json:"value_balance"`
Signatures []string `json:"signatures"`
EncryptedRecords []string `json:"encrypted_records"`
TransactionMetadata interface{} `json:"transaction_metadata"`
}
type TransactionResponse ¶
type TransactionResponse struct {
Result string `json:"result"`
}
type ValidateTransactionResponse ¶
type ValidateTransactionResponse struct {
Result bool `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.