JSON-RPC Responses

  • Undocumented

    Declaration

    Swift

    public protocol RPCResponse : Decodable, Encodable
  • A result body that consists of the context (slot information) and actual value result of a given operation.

    Commonly returned from calls that query bank state.

    See more

    Declaration

    Swift

    public struct RPCResponseAndContext<Response> : Codable where Response : RPCResponse
  • The contextual information corresponding to a given RPC response.

    See more

    Declaration

    Swift

    public struct RPCResponseContext : Codable
  • A JSON-RPC response, indicating either success or failure, wrapped in an identifier and specification version.

    See more

    Declaration

    Swift

    public struct TaggedRPCResponse<Success, Failure> : Decodable where Success : Decodable, Success : Encodable, Failure : Decodable, Failure : Error
  • The current health of the node.

    Declaration

    Swift

    public struct NodeHealthResponse : RPCResponse
  • The inflation reward for a list of addresses for an epoch.

    See more

    Declaration

    Swift

    public struct GetInflationRewardResult : Codable
  • Undocumented

    Declaration

    Swift

    public typealias GetLargestAccountsResult = [LamportBalanceStatement]
  • Undocumented

    Declaration

    Swift

    extension GetLargestAccountsResult: RPCResponse
  • An address and the number of lamports in the account.

    See more

    Declaration

    Swift

    public struct LamportBalanceStatement : Codable