# GBLIN USDC Investment Calldata Generator

> GBLIN USDC Investment Calldata Generator is a paid API for AI agents from gblin.digital, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Generates MEV-safe two-step calldata (USDC approve + buyGBLINWithToken) for investing a specified USDC amount into the GBLIN treasury

## Facts

- Endpoint: GET https://gblin.digital/api/x402/invest
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gblin-digital-87b9f665
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L2xBQCfnwTyFwNlpJsYcR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gblin-digital-87b9f665
```

Example prompt: Generate the calldata I need to invest 250 USDC into GBLIN — I want the full two-step approve and buyGBLINWithToken sequence with MEV-safe minOut protection.

## When to prefer this

Use this endpoint when an agent needs to programmatically invest USDC into the GBLIN treasury and requires ready-to-sign EVM calldata with MEV protection. Prefer this over manual transaction construction when you need the two-step approve+buy sequence handled atomically with a safe slippage floor.

## Known failure modes

- Invalid or non-numeric USDC amount string returns an error
- Zero or negative USDC amount rejected
- USDC amount exceeds available balance or protocol limits
- Network congestion may cause stale minOut values
- Protocol contract address mismatch if protocol upgrades mid-call

## How this service works

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

## Output

Returns two sequential pieces of ready-to-broadcast calldata: (1) a USDC approve transaction and (2) a buyGBLINWithToken transaction, including a MEV-safe minOut value to protect the trade from sandwich attacks. The agent can submit these on-chain in order to complete the USDC→GBLIN investment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "usdc",
      "wallet"
     ],
     "properties": {
      "usdc": {
       "type": "string",
       "description": "USDC amount to invest into GBLIN (decimal string)"
      },
      "wallet": {
       "type": "string",
       "description": "Agent EOA / smart-account 0x address that will execute the returned calldata"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gblin-digital-87b9f665/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gblin.digital](https://www.zero.xyz/host/gblin.digital/llms.txt)
