/** * Radix Chain Adapter * * Builds Radix transactions using the Gateway API, attaches Ed25519 * signatures from the FROST threshold signing network, and broadcasts * via the Radix Gateway. * * Radix uses Ed25519 for signing. The signing payload is returned * directly from the /transaction/build Gateway endpoint. * * No external dependencies — uses native fetch. * * Address format: account_rdx1... (Radix Babylon bech32m addresses) * * @example * ```typescript * import { RadixAdapter } from '@sequence0/sdk'; * * const radix = new RadixAdapter('mainnet'); * * const unsignedTx = await radix.buildTransaction( * { to: 'account_rdx1...', amount: '1000000000000000000', publicKey: 'abc...def' }, * 'account_rdx1...' * ); * * // ... sign via FROST ed25519 ... * const signedTx = await radix.attachSignature(unsignedTx, signatureHex); * const txHash = await radix.broadcast(signedTx); * ``` */ import { ChainAdapter, RadixTransaction } from '../core/types'; export declare class RadixAdapter implements ChainAdapter { private gatewayUrl; private network; private networkId; private xrdResource; constructor(network?: 'mainnet' | 'stokenet', gatewayUrl?: string); getRpcUrl(): string; /** * Build an unsigned Radix transaction for a native XRD transfer. * * Uses the Gateway /transaction/build endpoint which returns the * transaction intent and the payload_to_sign. */ buildTransaction(tx: RadixTransaction, fromAddress: string): Promise; /** * Extract the payload_to_sign from the build result as the * Ed25519 signing payload. */ getSigningPayload(unsignedTx: string): string; /** * Attach an Ed25519 signature to the Radix transaction. */ attachSignature(unsignedTx: string, signature: string): Promise; /** * Broadcast a signed Radix transaction via the Gateway. * * Uses /transaction/finalize to attach the signature, then * /transaction/submit to broadcast. */ broadcast(signedTx: string): Promise; /** * Get XRD balance for an account address. * * Uses the /state/entity/details Gateway endpoint. */ getBalance(address: string): Promise; /** * Get the current network status from the Gateway. */ getNetworkStatus(): Promise | null>; /** * Get transaction status by intent hash. */ getTransactionStatus(intentHash: string): Promise | null>; } /** Create a mainnet Radix adapter */ export declare function createRadixAdapter(gatewayUrl?: string): RadixAdapter; /** Create a Stokenet (testnet) Radix adapter */ export declare function createRadixTestnetAdapter(gatewayUrl?: string): RadixAdapter; //# sourceMappingURL=radix.d.ts.map