Score UserOperation format
account-abstraction_user-op-validityCheck a caller-supplied nonce, signature length, init code, and calldata length. Docs: https://www.brainiac.software/api/account-abstraction/user-op-validity Keywords: before you sponsor or submit a user operation, sender, nonce, signature, init code, call data, expected nonce, user op validity score, user_op_validity_score, rejection probability index, rejection_probability_index, validation errors, validation_errors, Score UserOperation format, user op validity.
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": {
"sender": "<sender>",
"nonce": "<nonce>",
"signature": "<signature>",
"init_code": "<init_code>",
"call_data": "<call_data>"
},
"name": "account-abstraction_user-op-validity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | nonce, integer, from 0 to 9007199254740991. Required. | |
| sender | Yes | sender, string. Required. | |
| call_data | Yes | init code, string, length 0 to 20000. Required. | |
| init_code | Yes | init code, string, length 0 to 20000. Required. | |
| signature | Yes | signature, string, length 0 to 1000. Required. | |
| expected_nonce | No | expected nonce, integer, from 0 to 9007199254740991. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| validation_errors | No | validation_errors. Array. | |
| user_op_validity_score | No | user_op_validity_score. Number. | |
| rejection_probability_index | No | rejection_probability_index. Number. |