Builds a gas-optimized multi-recipient payout plan
piggybank.loth2023ys.workers.dev/v1/defi/disperse-builder
Builds a gas-optimized multi-recipient payout plan: either a list of native transfers or a single Multicall3 aggregate3 batch of ERC20 transfer() calls. Returns calldata only - this service never signs or broadcasts.
GET
https://piggybank.loth2023ys.workers.dev/v1/defi/disperse-builderUptime100% 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://piggybank.loth2023ys.workers.dev/v1/defi/disperse-builder?chain=base&amountsWei=100000000000000%2C100000000000000&recipients=0x1111111111111111111111111111111111111111%2C0x2222222222222222222222222222222222222222");
console.log(await res.json());Example input
{
"chain": "base",
"amountsWei": "100000000000000,100000000000000",
"recipients": "0x1111111111111111111111111111111111111111,0x2222222222222222222222222222222222222222"
}