verify_gblin_authorization
Checks a signed GBLIN authorization on-chain before gas is spent, returning a would-settle verdict with calldata or the failing reason.
Instructions
Checks a signed GBLIN authorization against the chain before any gas is spent on it. Recovers the signer from the EIP-712 digest (and asks the wallet itself through ERC-1271 when the payer is a contract), then checks the validity window against on-chain time, whether the nonce has already been used or cancelled, and whether the payer still holds the amount. Returns a verdict and the ready calldata when it would settle, the failing reason when it would not. These are the checks an x402 facilitator runs, so a 'would_settle' verdict means the payment can be carried.
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": {
"authorization": "<authorization>",
"signature": "<signature>"
},
"name": "verify_gblin_authorization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Which method the signature was produced for. Default 'receive'. | |
| signature | Yes | The signature produced by the payer's wallet, 0x-prefixed. | |
| authorization | Yes | The authorization object: from, to, value, validAfter, validBefore, nonce. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| checks | Yes | ||
| digest | No | ||
| method | Yes | ||
| source | No | ||
| submit | No | Calldata and who may submit it, or null when it would not settle. | |
| failures | Yes | Reasons it would not settle; empty when it would. | |
| would_settle | Yes | True only if the token would accept this authorization now. |