{"uid":"cap_L2xBQCfnwTyFwNlpJsYcR","slug":"gblin-digital-87b9f665","name":"GBLIN USDC Investment Calldata Generator","description":"USDC→GBLIN treasury-accumulation calldata: two sequential steps (approve USDC, then buyGBLINWithToken) with MEV-safe minOut.","url":"https://gblin.digital/api/x402/invest","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AJGyoNrc6ovLgJSpjly5q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates MEV-safe two-step calldata (USDC approve + buyGBLINWithToken) for investing a specified USDC amount into the GBLIN treasury","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:30.147Z","isFirstParty":false}