{"slug":"kushbitx-com-api-preflight-15b466","title":"One check before money moves on Base","host":"kushbitx.com","method":"POST","resource":"https://kushbitx.com/api/preflight","category":"market","description":"One check before money moves on Base. Simulates the unsigned transaction, decodes approvals and transfers, screens the token and the recipient or spender, and applies a protected SpendGuard policy when given. Returns ALLOW, REVIEW or BLOCK with sourced findings. Fail-closed: no ALLOW unless every ch","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"chainId":8453,"data":"0xa9059cbb000000000000000000000000d2db751a2fdba554706fb535438d81d3a0b4297900000000000000000000000000000000000000000000000000000000000003e8","from":"0x0d68028d06af13379C872FEE032568B4Be712f22","intent":"transfer","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value":"0"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"input":{"properties":{"body":{"additionalProperties":false,"properties":{"amount":{"description":"Amount in token units, for the record.","pattern":"^[0-9]+(\\.[0-9]{1,18})?$","type":"string"},"authorizationList":{"description":"Beta. EIP-7702 authorizations {chainId, address, nonce, yParity, r, s} of a type-4 transaction.","items":{"properties":{"address":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"authority":{"description":"Optional: the signer of the authorization, when known.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"chainId":{"type":"integer"},"nonce":{"type":["string","integer"]},"r":{"type":"string"},"s":{"type":"string"},"yParity":{"type":["string","integer"]}},"required":["chainId","address"],"type":"object"},"maxItems":5,"minItems":1,"type":"array"},"calls":{"description":"Beta. A batch of 1 to 10 calls from one account (from required; no to). Each call: to, value, data, and optionally intent, tokenAddress, expectedRecipient, minAmountOut, expectedTokenOut. Any call KushBitx does not interpret makes the batch REVIEW.","items":{"properties":{"data":{"pattern":"^0x([a-fA-F0-9]{2})*$","type":"string"},"expectedRecipient":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"expectedTokenOut":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"intent":{"enum":["swap","transfer","approve","buy_token","contract_call"],"type":"string"},"minAmountOut":{"type":"string"},"to":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"tokenAddress":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"value":{"pattern":"^[0-9]+$","type":"string"}},"required":["to"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"},"chainId":{"description":"Base mainnet.","enum":[8453],"type":"integer"},"data":{"description":"Unsigned calldata.","pattern":"^0x([a-fA-F0-9]{2})*$","type":"string"},"entryPoint":{"description":"Beta. With userOperation: the official EntryPoint v0.6, v0.7 or v0.8 address.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"expectedRecipient":{"description":"Swap: who must receive the output (default: from). ETH or ERC-20 transfer: who must be paid; a different recipient is BLOCK (EXPECTED_RECIPIENT_MISMATCH).","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"expectedTokenOut":{"description":"Swap: token the swap must deliver; 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH. For buy_token, tokenAddress is used when this is absent.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"from":{"description":"Wallet that will sign. Required in practice: without it the verdict is REVIEW (sender_unknown), because the transaction cannot be simulated from the signing wallet.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"intent":{"description":"What the agent means to do.","enum":["swap","transfer","approve","buy_token","contract_call"],"type":"string"},"minAmountOut":{"description":"Swap: smallest acceptable output, in token units (for example 25.5).","pattern":"^[0-9]+(\\.[0-9]{1,36})?$","type":"string"},"policy":{"additionalProperties":false,"description":"Protected SpendGuard policy (send the agent key as Authorization: Bearer). Base USDC transfers only.","properties":{"agentId":{"type":"string"},"policyId":{"type":"string"},"requestId":{"type":"string"}},"required":["policyId","agentId","requestId"],"type":"object"},"safeTransaction":{"additionalProperties":false,"description":"Beta. A Safe transaction (instead of to and data). On ALLOW the response carries safeCoSignature (Safe Policy Engine CoSignerPolicy format); a delegatecall is never co-signed.","properties":{"data":{"type":"string"},"nonce":{"type":"string"},"operation":{"enum":[0,1],"type":"integer"},"safe":{"type":"string"},"to":{"type":"string"},"value":{"type":"string"}},"required":["safe","to"],"type":"object"},"to":{"description":"Transaction destination (contract or wallet).","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"tokenAddress":{"description":"Token to screen, when it is not the transaction destination (for example the token being bought).","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"userOperation":{"description":"Beta. An ERC-4337 UserOperation for a deployed account, with entryPoint (no to).","properties":{"callData":{"pattern":"^0x([a-fA-F0-9]{2})*$","type":"string"},"callGasLimit":{"type":"string"},"factory":{"type":"string"},"factoryData":{"type":"string"},"initCode":{"type":"string"},"maxFeePerGas":{"type":"string"},"maxPriorityFeePerGas":{"type":"string"},"nonce":{"type":"string"},"paymaster":{"type":"string"},"paymasterAndData":{"type":"string"},"paymasterData":{"type":"string"},"preVerificationGas":{"type":"string"},"sender":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"signature":{"type":"string"},"verificationGasLimit":{"type":"string"}},"required":["sender","callData"],"type":"object"},"value":{"description":"Native ETH value in wei.","pattern":"^[0-9]+$","type":"string"}},"required":["chainId"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"enum":["http"],"type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"enum":["json"],"type":"string"}},"required":["type","example"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"One check before money moves on Base. Simulates the unsigned transaction, decodes approvals and transfers, screens the token and the recipient or spender, and applies a protected SpendGuard policy when given. Returns ALLOW, REVIEW or BLOCK with sourced findings. Fail-closed: no ALLOW unless every check ran. Does not detect prompt injection; Protected SpendGuard can cap what an agent pays, but does not detect it either.","last_updated":"2026-11-13T08:23:54.215Z","schemes":["exact"]}