//#region extensions/crypto/src/services/safe-service.d.ts /** * Safe Multisig Service — Safe Transaction Service API client. * * Interacts with Safe{Wallet} (formerly Gnosis Safe) multisig wallets via * the Safe Transaction Service REST API. Supports Ethereum and Base. * * API: https://safe-transaction-service.safe.global * No SDK dependency — direct REST calls via guardedFetch. */ interface SafeInfo { address: string; nonce: number; threshold: number; owners: string[]; modules: string[]; fallbackHandler: string; guard: string; version: string; chainId: number; } interface SafeBalance { tokenAddress: string | null; token: { name: string; symbol: string; decimals: number; } | null; balance: string; } interface SafeTransaction { safeTxHash: string; to: string; value: string; data: string | null; operation: number; nonce: number; submissionDate: string; executionDate: string | null; isExecuted: boolean; isSuccessful: boolean | null; confirmationsRequired: number; confirmations: Array<{ owner: string; submissionDate: string; signatureType: string; }>; executor: string | null; transactionHash: string | null; dataDecoded: any | null; } interface ProposeTransactionParams { safeAddress: string; to: string; value: string; data: string; operation?: number; safeTxGas?: string; baseGas?: string; gasPrice?: string; gasToken?: string; refundReceiver?: string; nonce?: number; signature: string; sender: string; } declare class SafeService { /** * Get Safe info (threshold, owners, nonce, version). */ getInfo(safeAddress: string, chainId?: number): Promise; /** * Get Safe balances (ETH + ERC-20 tokens). */ getBalances(safeAddress: string, chainId?: number): Promise; /** * Get pending (queued) transactions for a Safe. */ getPendingTransactions(safeAddress: string, chainId?: number, limit?: number): Promise; /** * Get transaction history for a Safe. */ getTransactionHistory(safeAddress: string, chainId?: number, limit?: number): Promise; /** * Get a specific transaction by safeTxHash. */ getTransaction(safeTxHash: string, chainId?: number): Promise; /** * Confirm (sign) a pending transaction. * The signature must be generated off-chain using the Safe signing scheme. */ confirmTransaction(safeTxHash: string, signature: string, chainId?: number): Promise<{ success: boolean; }>; /** * Propose a new transaction to a Safe. * Requires off-chain signature of the Safe transaction hash. */ proposeTransaction(params: ProposeTransactionParams, chainId?: number): Promise<{ success: boolean; }>; /** * Check if an address is an owner of a Safe. */ isOwner(safeAddress: string, ownerAddress: string, chainId?: number): Promise; /** * Resolve chain from input string. */ resolveChainId(chain?: string): number; private getApiUrl; private apiGet; private mapTransaction; } declare function getSafeService(): SafeService; declare function resetSafeService(): void; //#endregion export { ProposeTransactionParams, SafeBalance, SafeInfo, SafeService, SafeTransaction, getSafeService, resetSafeService }; //# sourceMappingURL=safe-service.d.mts.map