Documentation ¶
Index ¶
- Constants
- type JsonRPC
- func (k *JsonRPC) ApplyBlock(ctx context.Context, block *protocol.Block) (*chainrpc.SubmitBlockResponse, error)
- func (k *JsonRPC) GetBlocksByHeight(ctx context.Context, blockID multihash.Multihash, height uint64, ...) (*block_store.GetBlocksByHeightResponse, error)
- func (k *JsonRPC) GetHeadInfo(ctx context.Context) (*chainrpc.GetHeadInfoResponse, error)
- type KoinosRPC
- func (k *KoinosRPC) ApplyBlock(ctx context.Context, block *protocol.Block) (*chainrpc.SubmitBlockResponse, error)
- func (k *KoinosRPC) GetBlocksByHeight(ctx context.Context, blockID multihash.Multihash, height uint64, ...) (*block_store.GetBlocksByHeightResponse, error)
- func (k *KoinosRPC) GetHeadInfo(ctx context.Context) (*chainrpc.GetHeadInfoResponse, error)
- func (k *KoinosRPC) IsConnectedToChain(ctx context.Context) (bool, error)
Constants ¶
View Source
const ( GetHeadInfoCall = "chain.get_head_info" GetBlocksByHeightCall = "block_store.get_blocks_by_height" SubmitBlockCall = "chain.submit_block" )
RPC service constants
View Source
const ( ChainRPC = "chain" BlockStoreRPC = "block_store" )
RPC service constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRPC ¶
type JsonRPC struct {
// contains filtered or unexported fields
}
JsonRPC
func (*JsonRPC) ApplyBlock ¶
func (*JsonRPC) GetBlocksByHeight ¶
func (k *JsonRPC) GetBlocksByHeight(ctx context.Context, blockID multihash.Multihash, height uint64, numBlocks uint32) (*block_store.GetBlocksByHeightResponse, error)
func (*JsonRPC) GetHeadInfo ¶
type KoinosRPC ¶
type KoinosRPC struct {
// contains filtered or unexported fields
}
KoinosRPC implements LocalRPC implementation by communicating with a local Koinos node via AMQP
func (*KoinosRPC) ApplyBlock ¶
func (k *KoinosRPC) ApplyBlock(ctx context.Context, block *protocol.Block) (*chainrpc.SubmitBlockResponse, error)
ApplyBlock rpc call
func (*KoinosRPC) GetBlocksByHeight ¶
func (k *KoinosRPC) GetBlocksByHeight(ctx context.Context, blockID multihash.Multihash, height uint64, numBlocks uint32) (*block_store.GetBlocksByHeightResponse, error)
// GetBlocksByHeight rpc call
func (*KoinosRPC) GetHeadInfo ¶
GetHeadInfo rpc call
Click to show internal directories.
Click to hide internal directories.