Documentation
¶
Index ¶
- Constants
- type GetAccountInfoConfig
- type GetAccountInfoDataSlice
- type GetAccountInfoResp
- type GetAccountInfoRespContext
- type GetAccountInfoRespValue
- type GetEpochInfoResp
- type GetLatestBlockhashResp
- type GetLatestBlockhashRespContext
- type GetLatestBlockhashRespValue
- type RpcServer
- func (rpcServer *RpcServer) GetAccountInfo(ctx context.Context, p jsonrpc.RawParams) (GetAccountInfoResp, error)
- func (rpcServer *RpcServer) GetBankHash(ctx context.Context, p jsonrpc.RawParams) (string, error)
- func (rpcServer *RpcServer) GetBlockHeight(ctx context.Context, p jsonrpc.RawParams) (uint64, error)
- func (rpcServer *RpcServer) GetEpochInfo(ctx context.Context, p jsonrpc.RawParams) (GetEpochInfoResp, error)
- func (rpcServer *RpcServer) GetLatestBlockhash(ctx context.Context, p jsonrpc.RawParams) (GetLatestBlockhashResp, error)
- func (rpcServer *RpcServer) Start()
Constants ¶
View Source
const ( GetAccountEncodingBase58 = iota GetAccountEncodingBase64 GetAccountEncodingBase64Zstd GetAccountEncodingJson )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAccountInfoConfig ¶
type GetAccountInfoConfig struct {
Commitment string
EncodingType *int
DataSlice *GetAccountInfoDataSlice
MinContextSlot uint64
}
type GetAccountInfoDataSlice ¶
type GetAccountInfoResp ¶
type GetAccountInfoResp struct {
Context GetAccountInfoRespContext `json:"context"`
Value *GetAccountInfoRespValue `json:"value"`
}
type GetAccountInfoRespValue ¶
type GetEpochInfoResp ¶
type GetLatestBlockhashResp ¶
type GetLatestBlockhashResp struct {
Context GetLatestBlockhashRespContext `json:"context"`
Value *GetLatestBlockhashRespValue `json:"value"`
}
type GetLatestBlockhashRespContext ¶
type GetLatestBlockhashRespContext struct {
Slot uint64 `json:"slot"`
}
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func NewRpcServer ¶
func NewRpcServer(acctsDb *accountsdb.AccountsDb, port uint16) *RpcServer
func (*RpcServer) GetAccountInfo ¶
func (rpcServer *RpcServer) GetAccountInfo(ctx context.Context, p jsonrpc.RawParams) (GetAccountInfoResp, error)
func (*RpcServer) GetBankHash ¶
func (*RpcServer) GetBlockHeight ¶
func (*RpcServer) GetEpochInfo ¶
func (rpcServer *RpcServer) GetEpochInfo(ctx context.Context, p jsonrpc.RawParams) (GetEpochInfoResp, error)
func (*RpcServer) GetLatestBlockhash ¶
func (rpcServer *RpcServer) GetLatestBlockhash(ctx context.Context, p jsonrpc.RawParams) (GetLatestBlockhashResp, error)
Click to show internal directories.
Click to hide internal directories.