Versions in this module Expand all Collapse all v0 v0.2.0 May 11, 2026 Changes in this version + const GetAccountEncodingBase58 + const GetAccountEncodingBase64 + const GetAccountEncodingBase64Zstd + const GetAccountEncodingJson + type AccountInfoPayload struct + Data interface{} + Executable bool + Lamports uint64 + Owner string + RentEpoch uint64 + Space int + type GetAccountInfoConfig struct + Commitment string + DataSlice *GetAccountInfoDataSlice + EncodingType *int + MinContextSlot uint64 + type GetAccountInfoDataSlice struct + Len *uint64 + Offset *uint64 + type GetAccountInfoResp struct + Context GetAccountInfoRespContext + Value *GetAccountInfoRespValue + type GetAccountInfoRespContext struct + ApiVersion string + Slot uint64 + type GetAccountInfoRespValue struct + Data any + Executable bool + Lamports uint64 + Owner string + RentEpoch uint64 + Space uint64 + type GetEpochInfoResp struct + AbsoluteSlot uint64 + BlockHeight uint64 + Epoch uint64 + SlotIndex uint64 + SlotsInEpoch uint64 + TransactionCount uint64 + type GetLatestBlockhashResp struct + Context GetLatestBlockhashRespContext + Value *GetLatestBlockhashRespValue + type GetLatestBlockhashRespContext struct + Slot uint64 + type GetLatestBlockhashRespValue struct + Blockhash string + LastValidBlockHeight uint64 + type InnerInstruction struct + Accounts []uint8 + Data string + ProgramIdIndex uint8 + StackHeight *uint32 + type InnerInstructionGroup struct + Index uint8 + Instructions []InnerInstruction + type InvalidParamsError struct + Message string + func (e *InvalidParamsError) Error() string + func (e *InvalidParamsError) FromJSONRPCError(rpcErr jsonrpc.JSONRPCError) error + func (e *InvalidParamsError) ToJSONRPCError() (jsonrpc.JSONRPCError, error) + type LoadedAddressesPayload struct + Readonly []string + Writable []string + type MinContextSlotNotReachedError struct + ContextSlot uint64 + func (e *MinContextSlotNotReachedError) Error() string + func (e *MinContextSlotNotReachedError) FromJSONRPCError(rpcErr jsonrpc.JSONRPCError) error + func (e *MinContextSlotNotReachedError) ToJSONRPCError() (jsonrpc.JSONRPCError, error) + type ReplacementBlockhashPayload struct + Blockhash string + LastValidBlockHeight uint64 + type ReturnDataPayload struct + Data []string + ProgramId string + type RpcServer struct + func NewRpcServer(acctsDb *accountsdb.AccountsDb, port uint16) *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) SendTransaction(ctx context.Context, p jsonrpc.RawParams) (string, error) + func (rpcServer *RpcServer) SetSlotCtx(slotCtx *sealevel.SlotCtx) + func (rpcServer *RpcServer) SimulateTransaction(ctx context.Context, p jsonrpc.RawParams) (SimulateTransactionResp, error) + func (rpcServer *RpcServer) Start() + type SendTransactionPreflightFailureError struct + Message string + Result SimulateTransactionRespValue + func (e *SendTransactionPreflightFailureError) Error() string + func (e *SendTransactionPreflightFailureError) FromJSONRPCError(rpcErr jsonrpc.JSONRPCError) error + func (e *SendTransactionPreflightFailureError) ToJSONRPCError() (jsonrpc.JSONRPCError, error) + type SimulateTransactionResp struct + Context SimulateTransactionRespContext + Value SimulateTransactionRespValue + type SimulateTransactionRespContext struct + ApiVersion string + Slot uint64 + type SimulateTransactionRespValue struct + Accounts *[]*AccountInfoPayload + Err interface{} + Fee *uint64 + InnerInstructions *[]InnerInstructionGroup + LoadedAccountsDataSize *uint32 + LoadedAddresses *LoadedAddressesPayload + Logs *[]string + PostBalances *[]uint64 + PostTokenBalances *[]TokenBalancePayload + PreBalances *[]uint64 + PreTokenBalances *[]TokenBalancePayload + ReplacementBlockhash *ReplacementBlockhashPayload + ReturnData *ReturnDataPayload + UnitsConsumed *uint64 + type TokenBalancePayload struct + AccountIndex uint8 + Mint string + Owner string + ProgramId string + UiTokenAmount UiTokenAmountPayload + type UiTokenAmountPayload struct + Amount string + Decimals uint8 + UiAmount *float64 + UiAmountString string v0.1.0-alpha.1 Jan 15, 2026