Score paymaster sponsorship risk
account-abstraction_sponsorship-riskAdd the caller-supplied call gas and verification gas, multiply by the max fee, and compare that cost with the paymaster deposit. Docs: https://www.brainiac.software/api/account-abstraction/sponsorship-risk Keywords: before you sponsor or submit a user operation, deposit wei, max fee per gas, max call gas, max verification gas, allow init code, user operations, sponsorship risk score, sponsorship_risk_score, gas limit safety index, gas_limit_safety_index, Score paymaster sponsorship risk, sponsorship risk.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deposit_wei": "<deposit_wei>",
"max_fee_per_gas": "<max_fee_per_gas>",
"max_call_gas": "<max_call_gas>",
"max_verification_gas": "<max_verification_gas>",
"allow_init_code": "<allow_init_code>",
"user_operations": "<user_operations>"
},
"name": "account-abstraction_sponsorship-risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deposit_wei | Yes | deposit wei, integer, from 0 to 9007199254740991. Required. | |
| max_call_gas | Yes | max call gas, integer, from any to 30000000. Required. | |
| allow_init_code | Yes | allow init code, boolean. Required. | |
| max_fee_per_gas | Yes | max fee per gas, integer, from any to 9007199254740991. Required. | |
| user_operations | Yes | user operations, array. Required. | |
| max_verification_gas | Yes | max verification gas, integer, from 0 to 30000000. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas_limit_safety_index | No | gas_limit_safety_index. Number. | |
| sponsorship_risk_score | No | sponsorship_risk_score. Number. |