G

Gblin · Invest

by Gblin

GETBase

$0.002

per call · USD Coin on Base

USDC→GBLIN treasury-accumulation calldata: two sequential steps (approve USDC, then buyGBLINWithToken) with MEV-safe minOut.

Endpoint

GET https://gblin.digital/api/x402/invest

3

Calls / 30d

1

Unique payers / 30d

Aug 30

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://gblin.digital/api/x402/invest", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://gblin.digital/api/x402/invest?usdc=10&wallet=0x0000000000000000000000000000000000000001" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "action": "sequential_txs",
  "expected": {
    "gblin_expected": "8.121345",
    "gblin_min": "7.918310",
    "slippage_buffer_pct": 2.5,
    "slippage_reason": "normal",
    "usdc_in": "10",
    "weth_min": "0.002824"
  },
  "security": {
    "mev_protected": true,
    "min_outs_set": true
  },
  "steps": [
    {
      "calldata": "0x095ea7b3…",
      "description": "Approve GBLIN contract to spend USDC",
      "step": 1,
      "target": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "value": "0"
    },
    {
      "calldata": "0x4f5d3a7b…",
      "description": "Buy GBLIN with USDC via native contract function",
      "step": 2,
      "target": "0x36C81d7E1966310F305eA637e761Cf77F90852f0",
      "value": "0"
    }
  ]
}

Payment details

Pay to0x0eba5d314f4f5dcb7a094953fa9311a45172dd1b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Gblin & similar services