sponsor_finalized_transaction
Submits a finalized, fee-unpaid transaction built and signed elsewhere so the sponsor pays the dust while the builder's identity remains on-chain.
Instructions
Cross-server fee sponsoring, phase 2 (NIGHTGATE 0.17.0): submit a FINALIZED, fee-unpaid transaction that was built, proven and signed elsewhere (e.g. with the @odatano/nightgate-tx txbuilder, so the caller's key never left its machine). The sponsor session pays the dust; the on-chain effect carries the BUILDER's identity, not the sponsor's. The server enforces its contract/circuit allow-list and rejects anything outside it. The transaction expires with its TTL (default 30 min), so hand it over promptly. This is the SERIAL channel (one tx per sponsor wallet at a time); for parallel submission build with bind:false and use sponsor_unbound_transaction. The server picks the wallet that pays. The tool also waits for the block (about a minute more) and then carries the instance's signed receipt; if that wait runs out, receipt is null and the same call again fetches it. 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). A second, separate call with the same arguments needs a new idempotencyKey.
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 |