SolanaRequestGetProgramAccounts class

Returns all accounts owned by the provided program Pubkey https://solana.com/docs/rpc/http/getprogramaccounts

Inheritance

Constructors

SolanaRequestGetProgramAccounts.new({required SolAddress account, bool? withContext, RPCDataSliceConfig? dataSlice, List<RPCFilterConfig>? filters, Commitment? commitment, MinContextSlot? minContextSlot, SolanaRequestEncoding? encoding = SolanaRequestEncoding.base64})
const

Properties

account SolAddress
Pubkey of program, as base-58 encoded string
final
commitment Commitment?
The desired commitment level for the request.
finalinherited
dataSlice RPCDataSliceConfig?
Request a slice of the account's data.
final
encoding SolanaRequestEncoding?
The encoding format of the data.
finalinherited
filters List<RPCFilterConfig>?
filter results using up to 4 filter objects The resultant account(s) must meet ALL filter criteria to be included in the returned results
final
hashCode int
The hash code for this object.
no setterinherited
method String
getProgramAccounts
no setteroverride
minContextSlot MinContextSlot?
The minimum context slot for the request.
finalinherited
requestType → RequestServiceType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
withContext bool?
wrap the result in an RpcResponse JSON object
final

Methods

buildRequest(int requestID) SolanaRequestDetails
Converts the request parameters to a SolanaRequestDetails object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(List result) List<SolanaAccountInfo>
override
toJson() List
Converts the request parameters to a JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited