Builder for getProgramAccounts RPC requests.

Type Parameters

  • Account extends object = RpcAccount

  • Fields extends object = {}

Hierarchy

  • GpaBuilder

Constructors

Properties

context: Pick<Context, "rpc">
options: {
    dataSlice?: RpcDataSlice;
    deserializeCallback?: GpaBuilderMapCallback<Account>;
    fields?: GpaBuilderFieldSerializers<Fields, Fields>;
    filters?: RpcDataFilter[];
    sortCallback?: GpaBuilderSortCallback;
}

Type declaration

programId: PublicKey<string>

Methods

  • Parameters

    Returns GpaBuilder<Account, Fields>

  • Type Parameters

    • T extends object

    Parameters

    Returns GpaBuilder<T, Fields>

  • Parameters

    Returns Promise<Account[]>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • fieldName: K
    • Optional forcedOffset: number

    Returns [number, Serializer<Fields[K], Fields[K]>]

  • Type Parameters

    • T extends object

    Parameters

    Returns GpaBuilder<Account, T>

  • Returns GpaBuilder<Account, Fields>

  • Parameters

    • offset: number
    • length: number

    Returns GpaBuilder<Account, Fields>

  • Parameters

    • field: keyof Fields
    • Optional offset: number

    Returns GpaBuilder<Account, Fields>

  • Parameters

    • offset: number
    • data: string | number | bigint | boolean | Uint8Array | PublicKey<string>

    Returns GpaBuilder<Account, Fields>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • field: K
    • data: Fields[K]
    • Optional offset: number

    Returns GpaBuilder<Account, Fields>

  • Parameters

    • dataSize: number

    Returns GpaBuilder<Account, Fields>

  • Returns GpaBuilder<Account, Fields>

Generated using TypeDoc