import { APIResource } from "../../core/resource.js"; import * as TransactionsAPI from "../transactions.js"; import * as WalletsAPI from "./wallets.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * Operations related to wallets */ export declare class Transactions extends APIResource { /** * Get incoming and outgoing transactions of a wallet by wallet ID. * * @example * ```ts * const transaction = await client.wallets.transactions.get( * 'wallet_id', * { chain: 'ethereum' }, * ); * ``` */ get(walletID: string, query: TransactionGetParams, options?: RequestOptions): APIPromise; } export interface TransactionGetResponse { next_cursor: string | null; transactions: Array; } export declare namespace TransactionGetResponse { interface Transaction { caip2: string; created_at: number; /** * Details of a wallet transaction, varying by transaction type. */ details: Transaction.Details; /** * Privy's ID for the transaction, or `null` if the transaction was not broadcasted * through Privy. */ privy_transaction_id: string | null; /** * Status of a blockchain transaction submitted by Privy. */ status: TransactionsAPI.BlockchainTransactionStatus; transaction_hash: string | null; /** * The wallet whose history this transaction belongs to. The sending wallet for * outbound transactions, including every transaction Privy broadcasted, and the * receiving wallet for inbound transfers. */ wallet_id: string; sponsored?: boolean; user_operation_hash?: string; } namespace Transaction { /** * Details of a wallet transaction, varying by transaction type. */ type Details = WalletsAPI.TransactionDetail & {}; } } export interface TransactionGetParams { /** * Chains supported for transaction history queries. */ chain: WalletsAPI.TransactionChainNameInput; /** * Exactly one of `token` or `asset` is required. Cannot be used together with * `asset`. */ token?: WalletsAPI.TransactionTokenAddressInput | Array; /** * Exactly one of `asset` or `token` is required. Cannot be used together with * `token`. */ asset?: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'bnb' | 'usdt' | 'eurc' | 'usdb' | 'ousd' | 'pathusd' | 'sol' | 'trx' | Array; cursor?: string; /** * Include archived wallets in lookup. Defaults to false. */ include_archived?: boolean; limit?: number | null; tx_hash?: string; } export declare namespace Transactions { export { type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, }; } //# sourceMappingURL=transactions.d.ts.map