CAGR · Cagr
by CAGR
POSTBaseSolanaArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220stellar:pubnetalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
$0.001
per call · USD Coin on Base
Compound annual growth rate between a beginning and ending value over N years: (end/begin)^(1/years) - 1. Also returns total growth over the whole period.
Endpoint
POST https://agent402.tools/api/cagr4
Calls / 30d
1
Unique payers / 30d
Aug 31
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://agent402.tools/api/cagr", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"beginValue": 1000,
"endValue": 2000,
"years": 5
}),
});
const data = await res.json();cURL
curl -X POST \
"https://agent402.tools/api/cagr" \
-H "Content-Type: application/json" \
-d '{"beginValue":1000,"endValue":2000,"years":5}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"cagr": 0.148698,
"totalGrowth": 1,
"years": 5
}Payment details
Pay to
0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Schemesexact, upto
Is this your API?
Pin it to the top of Data & Enrichment and the homepage with a featured placement.
More from CAGR & similar services
O
Oneshotagent · Verify Email
win.oneshotagent.com
Email deliverability verification
POSTBaseData & Enrichment
$0.001 / call5.8k calls / 30d
O
Oneshotagent · Enrich Email
win.oneshotagent.com
Email enrichment and validation
POSTBaseData & Enrichment
$0.005 / call2.6k calls / 30d
S
Strale · Email Validate
api.strale.io
Validate an email address: RFC 5322 syntax, MX records, 5,361 disposable domain detection, role-based address detection (35 patterns), free provider detection, and typo suggestion for common providers (gmial.com ? gmail.com). Returns deliverability assess…
GETbaseData & Enrichment
$0.0324 / call2.3k calls / 30d