Base URL:
http://localhost:3100Prerequisites: ISCL Core running with at least one wallet imported and RPC configured.Recipe 1: ERC-20 Token Transfer (Full Pipeline)
Transfer 100 USDC on Base chain.1
Check the sender's balance
2
Request approval (build + preflight + approve)
3
Sign and broadcast
4
Check the transaction receipt
Recipe 2: Native ETH Transfer
Send 0.01 ETH on Base. This script extracts the approval token automatically and pipes it into the sign-and-send call.1
Approve the transfer
2
Sign and send using the extracted token
Recipe 3: DEX Swap (Uniswap V3)
Swap 0.1 WETH for USDC on Base using the Uniswap V3 router.1
Submit the swap intent for approval
2
Sign and send
Call
POST /v1/tx/sign-and-send with the full intent and the returned approvalTokenId, following the same pattern as Recipe 1 Step 3.The Uniswap V3 router address varies by chain:
- Base (8453):
0x2626664c2603336E57B271c5C0b26F421741e481 - Ethereum, Optimism, Arbitrum:
0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
Recipe 4: DEX Swap via 1inch Aggregator
Same swap as Recipe 3, but routed through 1inch for potentially better pricing across multiple DEXs. The only differences are adding"provider": "1inch" and using the 1inch router address.
Recipe 5: Web Approval Workflow
WhenISCL_APPROVAL_MODE=web, the approve-request endpoint blocks until a user approves or denies via the web dashboard or HTTP API. This requires two terminals.
1
Terminal 1: Submit the intent (blocks until approved)
2
Terminal 2: List pending approvals
3
Terminal 2: Approve the request
4
Alternative: Use the browser dashboard
Open
http://localhost:3100/approval-ui in a browser. The dashboard automatically polls for pending requests and displays Approve / Deny buttons with risk color coding.Recipe 6: Check Audit History
View recent transaction events from the append-only audit trail.The
limit query parameter accepts values from 1 to 100. Events are returned in reverse chronological order (ORDER BY timestamp DESC).Recipe 7: Skill Management
Register, inspect, and revoke skills through the Skill Registry API.Register a skill
Register a skill
List registered skills
List registered skills
Get skill details
Get skill details
Revoke a skill
Revoke a skill
Recipe 8: Health Check
Verify that ISCL Core is running and responsive.Common Patterns
Generating UUIDs for intent IDs
Every TxIntent requires a uniqueid field in UUID format.
Computing deadlines
Theconstraints.deadline field is a Unix timestamp in seconds. Set it to a future time to prevent stale intents from being executed.
Token amount conversion
All token amounts are specified as strings in their smallest unit (base unit). Use this table for reference:Error handling
Check HTTP status codes to determine the outcome of each request:
For detailed error shapes and recovery guidance, see the Error Catalog.
References
REST API Reference
Full endpoint documentation with request/response schemas
Error Catalog
Error shapes and recovery guidance
TxIntent Schema
TxIntent and action type schema specification
Configuration
Environment variables and policy configuration