Skip to main content

Module fullnode

Module fullnode 

Source
Expand description

Fullnode RPC method catalogue.

One {Method}Request + {Method}Response struct pair per method. The catalogue follows the table in dig-network/docs/resources/02-subsystems/08-binaries/supplement/02-rpc-method-matrix.md.

Method classification:

ClassExamplesRole requirement
Blockchain stateget_blockchain_state, get_network_info, healthzExplorer+
Blocksget_block, get_block_by_height, get_block_recordsExplorer+
Coinsget_coin_record, get_coin_records_by_hint, get_coin_records_by_puzzle_hashExplorer+
Mempoolget_mempool, push_txExplorer+ (read), Admin (write)
Peersget_connections, ban_peerAdmin
Checkpointsubmit_partial_checkpoint_signature, get_checkpoint_poolValidator
Validator setget_validator, get_active_validators, get_current_proposerExplorer+
Adminstop_node, get_recovery_status, get_versionAdmin

§Method name convention

Method names on the JSON-RPC wire are snake_case strings, declared via the associated METHOD constant on each request struct. Request / response struct names follow PascalCase of the method with Request / Response suffixes — GetBlockchainStateRequest etc.

Structs§

BanPeerRequest
ban_peer — evict and ban a peer.
BanPeerResponse
Response for BanPeerRequest.
BlockFull
Full block envelope used by get_block* responses.
BlockHeaderWire
Block header in wire form.
CheckpointEpochStatus
Per-epoch aggregation status.
CoinRecordWire
Coin record in wire form.
GetActiveValidatorsRequest
get_active_validators — page through the current active set.
GetActiveValidatorsResponse
Response for GetActiveValidatorsRequest.
GetBlockByHeightRequest
get_block_by_height — fetch a full canonical block by height.
GetBlockByHeightResponse
Response for GetBlockByHeightRequest. None means out-of-range.
GetBlockRecordsRequest
get_block_records — compact summaries of a contiguous height range.
GetBlockRecordsResponse
Response for GetBlockRecordsRequest. records.len() may be less than count at the chain tip.
GetBlockRequest
get_block — fetch a full block by hash.
GetBlockResponse
Response for GetBlockRequest. None means not found.
GetBlockchainStateRequest
get_blockchain_state — overall chain state.
GetBlockchainStateResponse
Response for GetBlockchainStateRequest.
GetCheckpointPoolRequest
get_checkpoint_pool — status of the checkpoint aggregation pool.
GetCheckpointPoolResponse
Response for GetCheckpointPoolRequest.
GetCoinRecordRequest
get_coin_record — fetch a single coin record by coin id.
GetCoinRecordResponse
Response for GetCoinRecordRequest. None means not found.
GetCoinRecordsByHintRequest
get_coin_records_by_hint — look up coins by CLVM hint.
GetCoinRecordsByHintResponse
Response for GetCoinRecordsByHintRequest.
GetCoinRecordsByPuzzleHashRequest
get_coin_records_by_puzzle_hash — look up coins owned by a puzzle.
GetCoinRecordsByPuzzleHashResponse
Response for GetCoinRecordsByPuzzleHashRequest.
GetConnectionsRequest
get_connections — enumerate connected peers.
GetConnectionsResponse
Response for GetConnectionsRequest.
GetCurrentProposerRequest
get_current_proposer — who is elected proposer at a height.
GetCurrentProposerResponse
Response for GetCurrentProposerRequest.
GetMempoolRequest
get_mempool — summary of pending transactions.
GetMempoolResponse
Response for GetMempoolRequest.
GetNetworkInfoRequest
get_network_info — genesis / network identity.
GetNetworkInfoResponse
Response for GetNetworkInfoRequest.
GetRecoveryStatusRequest
get_recovery_status — fullnode recovery-journal state.
GetRecoveryStatusResponse
Response for GetRecoveryStatusRequest.
GetValidatorRequest
get_validator — look up a validator by pubkey.
GetValidatorResponse
Response for GetValidatorRequest. None if no such validator.
GetVersionRequest
get_version — binary identification.
GetVersionResponse
Response for GetVersionRequest.
HealthzRequest
healthz — liveness probe.
HealthzResponse
Response for HealthzRequest.
MempoolItem
One entry in the mempool summary.
PeerInfoWire
Peer info in wire form.
PushTxRequest
push_tx — submit a spend bundle to the mempool.
PushTxResponse
Response for PushTxRequest.
StopNodeRequest
stop_node — request a graceful shutdown.
StopNodeResponse
Response for StopNodeRequest.
SubmitPartialCheckpointSignatureRequest
submit_partial_checkpoint_signature — validator submits a partial sig for the current epoch.
SubmitPartialCheckpointSignatureResponse
Response for SubmitPartialCheckpointSignatureRequest.

Enums§

PushTxStatus
Admission outcome of PushTxRequest.
RecoveryMode
Recovery state machine values.