Skip to main content

Minimal React Hook (EVM)

Wrap the helper utilities (fetchEcdsaQuote, buildTransferV2Params, ensureAllowance) around your existing network stack so that decimals and deadlines are handled consistently.

Node.js Treasury Distributor

Fetch Circle’s minimumFee guidance per domain pair through https://iris-api.circle.com/v2/burn/USDC/fees/{sourceDomainId}/{destDomainId} and map the result to your maxFee / minFinalityThreshold selection.

Status Dashboard Snippet

Solana Transfer (Anchor)

Sui Transfer (Transactions API)

  • recipientHex / solanaOwnerHex are 32-byte hex strings. Use left-padded bytes for EVM/Sui/Aptos destinations and the wallet public key when bridging into Solana.
  • When fee_is_native=true, convert SUI to 9-decimal “mist” and pass fee + gas_drop_amount inside nativeFeeCoin.

Aptos Transfer (ts-sdk)

  • recipientHex / solanaOwnerHex are 32-byte hex strings. Left-pad EVM/Aptos/Sui addresses and use the Solana wallet address only when bridging into Solana.
  • Pontem expects the Ed25519 signature as a byte array; Array.from(Buffer.from(...)) satisfies that requirement.
Always validate the deadline returned by the Gas API. If the quote is within ~30 seconds of expiring, request a fresh signature before prompting the user to sign.