Act: Intent-Driven Execution

The Act engine translates natural-language execution requests into validated transactions on X Layer Testnet (1952) through dedicated capability adapters.

Xecute is capability-driven rather than swap-specific. The AI model extracts parameters (token, amount, recipient, slippage), while registered TypeScript adapters construct exact calldata, execute pre-flight simulations against observed state, and request wallet signatures.

Supported Action Types

1. Testnet Swaps

XecuteTestnetRouter

Swaps tokens (e.g. OKB ↔ USDT ↔ USDC) on X Layer Testnet using the deployed demonstration router contract at 0x9be3af8223f49b9357941db269a39775f7802acb.

Example Prompts

“Swap 5 USDT to OKB with 0.5% max slippage”

“Trade 0.1 OKB into USDC”

Allowance Handling: If swapping an ERC-20 token, Xecute checks existing router allowances via allowance(owner, router) and prompts for an exact approval only if required.

2. Direct Native & Token Transfers

ERC-20 / Native

Transfers native OKB or supported ERC-20 tokens directly to a recipient address with EVM address format verification and normalization.

Example Prompts

“Send 0.05 OKB to 0x727ee5DC96E729d8f6C6930cd02ad1695498f3B8”

“Transfer 10 USDC to vitalik.eth / 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045”

3. Exact Approvals & 1-Click Revocations

ERC-20 approve()

Constructs exact token approvals for specific spender contracts, or issues zero-allowance (approve(spender, 0)) revocation transactions to remove active allowance permissions.

Example Prompts

“Approve 25 USDT for 0x9be3af8223f49b9357941db269a39775f7802acb”

“Revoke allowance for USDC”

Interactive Action Confirmation Card

Xecute never blurts raw transaction hashes or signs autonomously. Every actionable intent renders an interactive confirmation card containing:

Pre-Flight Balance Delta

Shows exact You Pay and You Receive token balance deltas.

Slippage Tolerance Tuner

Customizable slippage tolerance (0.1%, 0.5%, 1.0%) capped at 5.0% maximum.

Gas & Reserve Protection

Real-time gas estimation with native OKB reserve enforcement.

Live Explorer Links

Direct onchain transaction hash link to OKX Web3 Explorer upon settlement.