Score paymaster sponsorship risk API
Add the caller-supplied call gas and verification gas, multiply by the max fee, and compare that cost with the paymaster deposit. Gas above the stated ceilings, and init code when it is not allowed, raise the risk score. The safety index is how far each gas field sits inside its ceiling. No deposit is read from a chain.
The Score paymaster sponsorship risk operation is part of the Paymaster Sponsorship Audit API on BRAINIAC.software. Add the caller-supplied call gas and verification gas, multiply by the max fee, and compare that cost with the paymaster deposit. Gas above the stated ceilings, and init code when it is not allowed, raise the risk score. The safety index is how far each gas field sits inside its ceiling. No deposit is read from a chain. It is exposed as POST /api/v1/account-abstraction/sponsorship-risk and priced at $0.04 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied ERC-4337 UserOperations and paymaster sponsorship policy processed locally Limitations: No Paymaster deposit, balance, reputation, or other chain state is read. The result does not say whether a bundler will accept the UserOperation. Only EntryPoint 0.6 and 0.7 UserOperation layouts are defined. Bytes after the EntryPoint Paymaster envelope are decoded only when paymasterDataFormat is verifying_paymaster. Sponsored gas is the EntryPoint required-prefund sum. It is not measured gas used. UserOperation structure is checked for EntryPoint 0.6 and 0.7 only. Signatures are not recovered, and execution is not simulated. sponsorship-risk multiplies the supplied gas by the supplied max fee and compares that cost with the supplied deposit. user-op-validity checks signature length, nonce, init code size, and calldata length. A 64-byte or 65-byte signature is not recovered. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Audit paymaster sponsorship, Audit user operation, Score UserOperation format. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/account-abstraction/sponsorship-riskExample request
curl -i -X POST "https://www.brainiac.software/api/v1/account-abstraction/sponsorship-risk" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"deposit_wei": 1000000000000000,
"max_fee_per_gas": 1000000000,
"max_call_gas": 300000,
"max_verification_gas": 200000,
"allow_init_code": false,
"user_operations": [
{
"call_gas_limit": 500000,
"verification_gas_limit": 150000,
"init_code": "0x"
}
]
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Audit paymaster sponsorship — $0.05 USDC
- Audit user operation — $0.05 USDC
- Score UserOperation format — $0.04 USDC