agent402.tools/api/wallet-pnl
Realized and unrealized profit and loss of an EVM wallet on one chain (base, ethereum, arbitrum, optimism, polygon) over the last 1-30 days, computed here from its ERC-20 Transfer logs and Uniswap v3 Swap events for a listed token set: trades priced from their own USDC amounts, from the native coin leg read off the transaction receipt (wrapped-coin Deposit or Withdrawal), or from Uniswap v3 pool s
POST
https://agent402.tools/api/wallet-pnlUptime100% 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://agent402.tools/api/wallet-pnl", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c","days":1,"network":"ethereum"}),
});
console.log(await res.json());Example input
{
"address": "0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c",
"days": 1,
"network": "ethereum"
}