Class GpaBuilder<Account, Fields>
Type Parameters
-
Account extends object = RpcAccount
-
Fields extends object = {}
Properties
Protected
Readonly
context
Readonly
options
Readonly
programId
Methods
getDeserialized
- getDeserialized(options?: RpcGetProgramAccountsOptions): Promise<Account[]>
-
Returns Promise<Account[]>
Protected
getField
- getField<K>(fieldName: K, forcedOffset?: number): [number, Serializer<Fields[K], Fields[K]>]
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
fieldName: K
-
Optional
forcedOffset: number
Returns [number, Serializer<Fields[K], Fields[K]>]
reset
- reset(): GpaBuilder<Account, Fields>
-
Returns GpaBuilder<Account, Fields>
slice
- slice(offset: number, length: number): GpaBuilder<Account, Fields>
-
Parameters
-
offset: number
-
length: number
Returns GpaBuilder<Account, Fields>
sliceField
- sliceField(field: keyof Fields, offset?: number): GpaBuilder<Account, Fields>
-
Parameters
-
field: keyof Fields
-
Optional
offset: number
Returns GpaBuilder<Account, Fields>
where
- where(offset: number, data: string | number | bigint | boolean | Uint8Array | PublicKey<string>): GpaBuilder<Account, Fields>
-
Parameters
-
offset: number
-
data: string | number | bigint | boolean | Uint8Array | PublicKey<string>
Returns GpaBuilder<Account, Fields>
whereField
- whereField<K>(field: K, data: Fields[K], offset?: number): GpaBuilder<Account, Fields>
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
field: K
-
data: Fields[K]
-
Optional
offset: number
Returns GpaBuilder<Account, Fields>
whereSize
- whereSize(dataSize: number): GpaBuilder<Account, Fields>
-
Returns GpaBuilder<Account, Fields>
withoutData
- withoutData(): GpaBuilder<Account, Fields>
-
Returns GpaBuilder<Account, Fields>
Builder for
getProgramAccounts
RPC requests.