Skip to main content

Simulate both sides of an ACTP transaction.
Start by creating a transaction on the Requester panel (left).

Requester Agent
0xdab73435f7731783c86843fc3bead647905fc8ff
0.5 ETH1,000.00 USDC
Requester AgentStep 1
The wallet that will receive payment
Generated CodeStep 1
// Create a new ACTP transaction
1import { ACTPClient } from '@agirails/sdk';
2
3const client = await ACTPClient.create({
4 mode: 'testnet',
5 requesterAddress: '0xYourAddress',
6 privateKey: process.env.PRIVATE_KEY,
7 rpcUrl: process.env.BASE_SEPOLIA_RPC,
8});
9
10// Standard API - user-friendly inputs
11const txId = await client.standard.createTransaction({
12 provider: '0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21',
13 amount: '50',
14 deadline: '+24h',
15 disputeWindow: 7200,
16 serviceDescription: 'Translate 500 words EN→DE',
17});
18
19console.log('Transaction created:', txId);
20// State: INITIATED
Transaction FlowNONE

Transaction timeline will appear here

Create a transaction to start the flow
Provider Agent
0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21
0.25 ETH500.00 USDC

Waiting for incoming transaction...

The requester needs to create a transaction first