GetTransactionsForAddressApi

type GetTransactionsForAddressApi = object;

Methods

getTransactionsForAddress()

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJsonParsed<GetTransactionsForAddressMaxSupportedTransactionVersion>>;

Returns full transactions, parsed as JSON, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is set, each result carries a version, its meta carries loadedAddresses, and its message carries addressTableLookups.

Each instruction the server is able to parse will materialize as parsed data; otherwise it will materialize as a list of accounts, a program address, and base58-encoded instruction data.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }> & Readonly<{ encoding: "jsonParsed"; maxSupportedTransactionVersion: GetTransactionsForAddressMaxSupportedTransactionVersion; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJsonParsed<GetTransactionsForAddressMaxSupportedTransactionVersion>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJsonParsed<void>>;

Returns full transactions, parsed as JSON, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is omitted, only legacy transactions are returned and no version property is present.

Each instruction the server is able to parse will materialize as parsed data; otherwise it will materialize as a list of accounts, a program address, and base58-encoded instruction data.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Omit<Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }>, "maxSupportedTransactionVersion"> & Readonly<{ encoding: "jsonParsed"; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJsonParsed<void>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<GetTransactionsForAddressMaxSupportedTransactionVersion, Base64EncodedDataResponse>>;

Returns full transactions, as base64-encoded wire transactions, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is set, each result carries a version and its meta carries loadedAddresses.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }> & Readonly<{ encoding: "base64"; maxSupportedTransactionVersion: GetTransactionsForAddressMaxSupportedTransactionVersion; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<GetTransactionsForAddressMaxSupportedTransactionVersion, Base64EncodedDataResponse>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<void, Base64EncodedDataResponse>>;

Returns full transactions, as base64-encoded wire transactions, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is omitted, only legacy transactions are returned and no version property is present.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Omit<Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }>, "maxSupportedTransactionVersion"> & Readonly<{ encoding: "base64"; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<void, Base64EncodedDataResponse>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<GetTransactionsForAddressMaxSupportedTransactionVersion, Base58EncodedDataResponse>>;

Returns full transactions, as base58-encoded wire transactions, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is set, each result carries a version and its meta carries loadedAddresses.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }> & Readonly<{ encoding: "base58"; maxSupportedTransactionVersion: GetTransactionsForAddressMaxSupportedTransactionVersion; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<GetTransactionsForAddressMaxSupportedTransactionVersion, Base58EncodedDataResponse>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<void, Base58EncodedDataResponse>>;

Returns full transactions, as base58-encoded wire transactions, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is omitted, only legacy transactions are returned and no version property is present.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Omit<Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }>, "maxSupportedTransactionVersion"> & Readonly<{ encoding: "base58"; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullEncoded<void, Base58EncodedDataResponse>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJson<GetTransactionsForAddressMaxSupportedTransactionVersion>>;

Returns full transactions, as structured JSON, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is set, each result carries a version, its meta carries loadedAddresses, and its message carries addressTableLookups.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }> & Readonly<{ encoding?: "json"; maxSupportedTransactionVersion: GetTransactionsForAddressMaxSupportedTransactionVersion; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJson<GetTransactionsForAddressMaxSupportedTransactionVersion>>

Call Signature

getTransactionsForAddress(address, config): GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJson<void>>;

Returns full transactions, as structured JSON, for confirmed transactions that load the given address. Because maxSupportedTransactionVersion is omitted, only legacy transactions are returned and no version property is present.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
configReadonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Omit<Readonly<{ encoding?: "base58" | "base64" | "json" | "jsonParsed"; maxSupportedTransactionVersion?: GetTransactionsForAddressMaxSupportedTransactionVersion; }>, "maxSupportedTransactionVersion"> & Readonly<{ encoding?: "json"; transactionDetails: "full"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressFullJson<void>>

Call Signature

getTransactionsForAddress(address, config?): GetTransactionsForAddressApiResponse<GetTransactionsForAddressSignature>;

Returns signature-level results for confirmed transactions that load the given address.

This is the default mode. It combines the discovery step of GetSignaturesForAddressApi.getSignaturesForAddress with server-side filtering, sorting and cursor-based pagination.

Note: Check your RPC provider for support for this method.

Parameters
ParameterType
addressAddress
config?Readonly<{ commitment?: AllowedCommitmentForGetTransactionsForAddress; filters?: GetTransactionsForAddressFilters; limit?: number; minContextSlot?: Slot; paginationToken?: string; sortOrder?: "asc" | "desc"; }> & Readonly<{ transactionDetails?: "signatures"; }>
Returns

GetTransactionsForAddressApiResponse<GetTransactionsForAddressSignature>

Example
const { data, paginationToken } = await rpc
    .getTransactionsForAddress(address, {
        filters: { status: 'succeeded' },
        limit: 100,
        sortOrder: 'desc',
    })
    .send();