Umi — API References - v1.3.0
    Preparing search index...

    Class GpaBuilder<Account, Fields>

    Builder for getProgramAccounts RPC requests.

    Type Parameters

    • Account extends object = RpcAccount
    • Fields extends object = {}
    Index

    Constructors

    Properties

    options: {
        dataSlice?: RpcDataSlice;
        deserializeCallback?: GpaBuilderMapCallback<Account>;
        fields?: GpaBuilderFieldSerializers<Fields, Fields>;
        filters?: RpcDataFilter[];
        sortCallback?: GpaBuilderSortCallback;
    } = {}
    programId: PublicKey

    Methods

    • Type Parameters

      • T extends object

      Parameters

      • structFields: StructToSerializerTuple<T, T>

      Returns GpaBuilder<Account, T>

    • Parameters

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

      Returns GpaBuilder<Account, Fields>

    • Type Parameters

      • K extends string | number | symbol

      Parameters

      • field: K
      • data: Fields[K]
      • Optionaloffset: number

      Returns GpaBuilder<Account, Fields>