{"uid":"cap_vp2QWoo6g8W7lTxgB4feQ","slug":"gblin-digital-17f5b5e6","name":"GBLIN Just-In-Time USDC Atomic Swap Calldata","description":"Just-In-Time GBLIN→USDC calldata. Returns two ready-to-broadcast steps (sellGBLINForEth + WETH→USDC swap) sized to cover the requested USDC amount; smart accounts can batch them in one UserOp.","url":"https://gblin.digital/api/x402/jit","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 needed (decimal string)"},"wallet":{"type":"string","description":"Agent EOA / smart-account 0x address (for cooldown check)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"value":"0","action":"single_atomic_tx","params":{"pool_fee":500,"gblin_amount":"0.412345","min_usdc_out":"0.487500","target_token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"calldata":"0x5d2e1ca7…","expected":{"usdc_out":"0.500000","nav_used_usd":1.234567,"slippage_reason":"normal","slippage_buffer_pct":2.5},"gas_hint":600000,"compatibility":{"eoa":true,"eip7702":true,"erc4337":true},"target_contract":"0x36C81d7E1966310F305eA637e761Cf77F90852f0"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"usdc":"50.00","wallet":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"}}},"response":{"value":"0","action":"single_atomic_tx","params":{"pool_fee":500,"gblin_amount":"0.026278994540595813","min_usdc_out":"50","target_token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"calldata":"0x6a54df11000000000000000000000000000000000000000000000000005d5c9b36a58a65000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000002faf080","expected":{"usdc_out":"51.282051","nav_used_usd":1951.446465,"slippage_reason":"normal","slippage_buffer_pct":2.5},"gas_hint":600000,"compatibility":{"eoa":true,"eip7702":true,"erc4337":true},"target_contract":"0x38DcDB3A381677239BBc652aed9811F2f8496345"}},"exampleRequest":{"usdc":"50.00","wallet":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"},"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lI6FT9UU9PmWiov5j-myX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ready-to-broadcast atomic-swap calldata sized to cover a requested USDC amount by converting GBLIN tokens to USDC just-in-time.","exampleAgentPrompt":"Generate just-in-time GBLIN→USDC atomic swap calldata to cover 50.00 USDC for my wallet at 0xAbC1234567890abcdef1234567890abcdef123456 so I can broadcast it immediately.","exampleUseCases":null,"resultDescription":"Ready-to-broadcast atomic swap calldata that, when submitted on-chain, will convert enough GBLIN tokens to cover the requested USDC amount. The calldata is sized precisely to match the requested USDC value and is safe to broadcast immediately.","failureModes":["Insufficient GBLIN balance in the specified wallet — swap cannot be sized to cover requested USDC","Wallet address fails cooldown check — wallet recently performed a swap and must wait","Invalid or malformed wallet address — returns error","USDC amount is zero, negative, or unparseable decimal string — returns validation error","Protocol NAV or liquidity conditions prevent sizing the swap accurately — returns error"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs to liquidate GBLIN holdings into USDC just-in-time to cover a specific payment or expenditure. Prefer this over the USDC→GBLIN accumulation endpoint when the direction is GBLIN→USDC (selling, not buying). Choose this over a generic DEX swap when operating within the GBLIN protocol ecosystem and needing MEV-safe, protocol-native calldata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:43:24.005Z","isFirstParty":false}