$ -weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "amount": "1000000000", "gasCondition": { "maxGasPrice": "50000000", "timeout": 300 } }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "amount": "1000000000", "gasCondition": { "maxGasPrice": "50000000", "timeout": 300 } }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "amount": "1000000000", "gasCondition": { "maxGasPrice": "50000000", "timeout": 300 } }'
# 1. Swap on Jupiter (Solana)
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"inputMint": "SOL", "outputMint": "USDC", "amount": "10000000000"}' # 2. Bridge to Ethereum via LI.FI
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/lifi/bridge \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"fromChain": "solana", "toChain": "ethereum", "token": "USDC", "amount": "1000"}' # 3. Lend on Aave v3
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/aave-v3/supply \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"asset": "USDC", "amount": "1000"}'
# 1. Swap on Jupiter (Solana)
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"inputMint": "SOL", "outputMint": "USDC", "amount": "10000000000"}' # 2. Bridge to Ethereum via LI.FI
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/lifi/bridge \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"fromChain": "solana", "toChain": "ethereum", "token": "USDC", "amount": "1000"}' # 3. Lend on Aave v3
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/aave-v3/supply \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"asset": "USDC", "amount": "1000"}'
# 1. Swap on Jupiter (Solana)
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/jupiter-swap/swap \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"inputMint": "SOL", "outputMint": "USDC", "amount": "10000000000"}' # 2. Bridge to Ethereum via LI.FI
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/lifi/bridge \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"fromChain": "solana", "toChain": "ethereum", "token": "USDC", "amount": "1000"}' # 3. Lend on Aave v3
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/actions/aave-v3/supply \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{"asset": "USDC", "amount": "1000"}'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "Content-Type: application/json" \ -H "X-Master-Password: my-secret-password" \ -d '{ "walletId": "<wallet-uuid>", "type": "SPENDING_LIMIT", "rules": { "instant_max_usd": 1000, "notify_max_usd": 5000, "delay_max_usd": 20000, "delay_seconds": 300, "daily_limit_usd": 50000 } }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "Content-Type: application/json" \ -H "X-Master-Password: my-secret-password" \ -d '{ "walletId": "<wallet-uuid>", "type": "SPENDING_LIMIT", "rules": { "instant_max_usd": 1000, "notify_max_usd": 5000, "delay_max_usd": 20000, "delay_seconds": 300, "daily_limit_usd": 50000 } }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "Content-Type: application/json" \ -H "X-Master-Password: my-secret-password" \ -d '{ "walletId": "<wallet-uuid>", "type": "SPENDING_LIMIT", "rules": { "instant_max_usd": 1000, "notify_max_usd": 5000, "delay_max_usd": 20000, "delay_seconds": 300, "daily_limit_usd": 50000 } }'
# Only allow trading on whitelisted protocols
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "X-Master-Password: my-secret-password" \ -d '{ "type": "CONTRACT_WHITELIST", "rules": { "contracts": [ {"address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", "name": "Jupiter"}, {"address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9", "name": "Aave"} ] } }'
# Only allow trading on whitelisted protocols
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "X-Master-Password: my-secret-password" \ -d '{ "type": "CONTRACT_WHITELIST", "rules": { "contracts": [ {"address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", "name": "Jupiter"}, {"address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9", "name": "Aave"} ] } }'
# Only allow trading on whitelisted protocols
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/policies \ -H "X-Master-Password: my-secret-password" \ -d '{ "type": "CONTRACT_WHITELIST", "rules": { "contracts": [ {"address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", "name": "Jupiter"}, {"address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9", "name": "Aave"} ] } }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/transactions/send \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "type": "TRANSFER", "to": "recipient-address", "amount": "0.1", "dryRun": true }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/transactions/send \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "type": "TRANSFER", "to": "recipient-address", "amount": "0.1", "dryRun": true }'
-weight: 500;">curl -X POST http://127.0.0.1:3100/v1/transactions/send \ -H "Content-Type: application/json" \ -H "Authorization: Bearer wai_sess_<token>" \ -d '{ "type": "TRANSFER", "to": "recipient-address", "amount": "0.1", "dryRun": true }'
import { WAIaaSClient } from '@waiaas/sdk'; const client = new WAIaaSClient({ baseUrl: 'http://127.0.0.1:3100', sessionToken: process.env.WAIAAS_SESSION_TOKEN,
}); // Check opportunity profitability
const balance = await client.getBalance();
const gasPrice = await client.getGasPrice(); if (gasPrice < profitabilityThreshold) { // Execute arbitrage const tx = await client.executeAction('jupiter-swap', { inputMint: 'SOL', outputMint: 'USDC', amount: balance.balance });
}
import { WAIaaSClient } from '@waiaas/sdk'; const client = new WAIaaSClient({ baseUrl: 'http://127.0.0.1:3100', sessionToken: process.env.WAIAAS_SESSION_TOKEN,
}); // Check opportunity profitability
const balance = await client.getBalance();
const gasPrice = await client.getGasPrice(); if (gasPrice < profitabilityThreshold) { // Execute arbitrage const tx = await client.executeAction('jupiter-swap', { inputMint: 'SOL', outputMint: 'USDC', amount: balance.balance });
}
import { WAIaaSClient } from '@waiaas/sdk'; const client = new WAIaaSClient({ baseUrl: 'http://127.0.0.1:3100', sessionToken: process.env.WAIAAS_SESSION_TOKEN,
}); // Check opportunity profitability
const balance = await client.getBalance();
const gasPrice = await client.getGasPrice(); if (gasPrice < profitabilityThreshold) { // Execute arbitrage const tx = await client.executeAction('jupiter-swap', { inputMint: 'SOL', outputMint: 'USDC', amount: balance.balance });
}
-weight: 500;">git clone https://github.com/minhoyoo-iotrust/WAIaaS.-weight: 500;">git
cd WAIaaS
-weight: 500;">docker compose up -d
-weight: 500;">git clone https://github.com/minhoyoo-iotrust/WAIaaS.-weight: 500;">git
cd WAIaaS
-weight: 500;">docker compose up -d
-weight: 500;">git clone https://github.com/minhoyoo-iotrust/WAIaaS.-weight: 500;">git
cd WAIaaS
-weight: 500;">docker compose up -d
-weight: 500;">npm -weight: 500;">install -g @waiaas/cli
waiaas quickset --mode mainnet
-weight: 500;">npm -weight: 500;">install -g @waiaas/cli
waiaas quickset --mode mainnet
-weight: 500;">npm -weight: 500;">install -g @waiaas/cli
waiaas quickset --mode mainnet
-weight: 500;">npm -weight: 500;">install @waiaas/sdk
-weight: 500;">npm -weight: 500;">install @waiaas/sdk
-weight: 500;">npm -weight: 500;">install @waiaas/sdk - Monitor gas prices across networks in real-time
- Queue transactions with conditional execution
- Cancel outdated opportunities before they become losses
- Maintain execution across 14 DeFi protocols simultaneously
- Handle cross-chain arbitrage where timing matters - Deploy WAIaaS daemon: - Create a trading wallet: - Set up risk policies (spending limits, protocol whitelist, gas thresholds)
- Install the SDK: - Submit your first gas-conditional trade using the Jupiter swap example above