import { APIResource } from "../../core/resource.mjs"; import * as WalletsAPI from "./wallets.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; /** * 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_transaction_id: string; status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending'; transaction_hash: string | null; 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 { chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia'; /** * 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' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array; cursor?: string; limit?: number | null; tx_hash?: string; } export declare namespace Transactions { export { type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, }; } //# sourceMappingURL=transactions.d.mts.map