sponsor_finalized_transaction
Submit a finalized, fee-unpaid transaction so the sponsor pays the fee and broadcasts it on-chain while preserving the builder’s identity.
Instructions
Hand a FINALIZED, fee-unpaid transaction to the sponsor: one that was built, proven and signed elsewhere (build_sponsorable_transaction with bind:true, or the @odatano/nightgate-tx txbuilder, so the caller's key never left its machine). The sponsor pays the fee and submits; the on-chain effect carries the BUILDER's identity, not the sponsor's. The server picks the wallet that pays, applies its contract and circuit list and refuses anything outside it. The transaction expires with its TTL (default 30 min), so hand it over promptly. This is the SERIAL channel; for parallel submission build with bind:false and use sponsor_unbound_transaction. The tool waits until the job settled (about 1 minute) and returns { status, txHash, transactionHash, result }. failed: next says what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). With an idempotencyKey that also holds after a restart of this server. A second, separate call with the same arguments needs a new idempotencyKey.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sponsor_finalized_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path of a file holding the transaction, as base64 text or raw bytes (outFile of a build tool, or written by the txbuilder) | |
| txId | No | txId returned by build_sponsorable_transaction (bind:true) on this server; the bytes never pass through the conversation | |
| finalizedTxB64 | No | Base64 of the caller-finalized, fee-unpaid transaction, only when neither txId nor file is available: long base64 copied through a model loses characters | |
| idempotencyKey | No | Dedupes retries; the request is also fingerprinted by the transaction bytes |