{
  "x402Version": 2,
  "id": 4169,
  "slug": "4169",
  "resource": "https://gblin.digital/api/x402/invest",
  "description": "USDC→GBLIN treasury-accumulation calldata: two sequential steps (approve USDC, then buyGBLINWithToken) with MEV-safe minOut.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x0ebA5d314F4f5Dcb7A094953Fa9311a45172dd1B",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "usdc": "10",
            "wallet": "0x0000000000000000000000000000000000000001"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "usdc": {
                    "description": "USDC amount to invest into GBLIN (decimal string)",
                    "type": "string"
                  },
                  "wallet": {
                    "description": "Agent EOA / smart-account 0x address that will execute the returned calldata",
                    "type": "string"
                  }
                },
                "required": [
                  "usdc",
                  "wallet"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "gblin.digital",
  "lastUpdated": "2026-08-30T16:49:06.149Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-30T16:49:05.996Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "gblin.digital",
    "manifest_name": "gblin.digital",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}