/** * Parameters for creating a Bitcoin memo call transaction */ export interface MemoCallParams { /** Optional API URL override */ bitcoinApi?: string; /** Hex payload to include in OP_RETURN (0x‑prefixed allowed) */ data: string; /** Optional fee rate in sat/vB (if not provided, fetches from mempool API using halfHourFee) */ feeRate?: number; /** User's BTC address for UTXOs, signing, and receiving change */ fromAddress: string; /** ZetaChain gas price endpoint */ gasPriceEndpoint?: string; /** ZetaChain gateway address to send to */ gatewayAddress: string; /** Network (signet or mainnet) */ network: "signet" | "mainnet"; /** Universal Contract EVM address (0x…20 bytes) */ receiver: string; } /** * Result from building a PSBT */ export interface MemoCallPsbtResult { /** PSBT encoded as base64 string for wallet signing */ psbtBase64: string; /** Address that should sign the PSBT */ signingAddress: string; /** Input indexes that need to be signed */ signingIndexes: number[]; } /** * Result from broadcasting a transaction */ export interface MemoBroadcastResult { /** Raw transaction hex */ txHex: string; /** Transaction ID */ txid: string; } /** * Builds an unsigned PSBT for a memo call transaction * This PSBT must be signed by the wallet before broadcasting */ export declare const buildBitcoinMemoCallPsbt: (params: MemoCallParams) => Promise; /** * Finalizes a signed PSBT and broadcasts it to the network * @param signedPsbtBase64 - The PSBT after wallet signing (base64 encoded) * @param bitcoinApi - Optional API URL override * @returns Transaction ID and hex */ export declare const finalizeBitcoinMemoCall: (signedPsbtBase64: string, bitcoinApi?: string) => Promise;