Rigoblock direct DeFi tool invocation
trader.rigoblock.com/api/tools
Rigoblock direct DeFi tool invocation. POST to /api/tools?toolName={name} with arguments object.
POST
https://trader.rigoblock.com/api/toolsUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://trader.rigoblock.com/api/tools", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"arguments":{"amountIn":"1","tokenIn":"ETH","tokenOut":"USDC"},"chainId":8453,"toolName":"get_swap_quote","vaultAddress":"0x0000000000000000000000000000000000000000"}),
});
console.log(await res.json());Example input
{
"arguments": {
"amountIn": "1",
"tokenIn": "ETH",
"tokenOut": "USDC"
},
"chainId": 8453,
"toolName": "get_swap_quote",
"vaultAddress": "0x0000000000000000000000000000000000000000"
}More from RigoblockProvider status
- trader.rigoblock.com/api/chatAI-powered DeFi trading agent for Rigoblock smart vaults. Natural language to safe swap/bridge calldata or delegated execution. Supports Uniswap, 0x, GMX perpetuals, Hyperliquid perpetuals, Across bridging, Uniswap v4 LP, GRG staking, and pool deployment across 8 chains. Protected by NAV Shield (10% max loss per trade), Swap Shield (oracle vs DEX price divergence check), slippage protection, deleg0.20
- trader.rigoblock.com/api/quoteDEX price quote across 7 chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Unichain). Returns sell/buy amounts, price, routing, and gas estimate.0.002
