sponsor_unbound_transaction
Sponsors an unbound, signed transaction by adding the fee, binding it, and submitting it to NIGHTGATE; waits for settlement and returns status and transaction hash.
Instructions
Hand an UNBOUND (pre-binding), proven and signed transaction to the sponsor, the PARALLEL channel: one built by build_sponsorable_transaction, or by the @odatano/nightgate-tx txbuilder's buildSponsorable({ bind: false }) (the caller's key never left its machine). The sponsor adds its fee, binds and submits, several transactions at once. The server picks the wallet that pays and applies the same contract and circuit list as sponsor_finalized_transaction. Contract state is account-style: two sponsored calls against the SAME contract in one block conflict, the loser lands on-chain but its call does not apply and the job ends failed with errorCode CHAIN_EXECUTION_FAILED (the transaction hash is in the error); then REBUILD the transaction against the current contract state and sponsor again (never resubmit the same bytes). 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_unbound_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 on this server; the bytes never pass through the conversation | |
| unboundTxB64 | No | Base64 of the caller-built, proven and signed UNBOUND transaction, only when neither txId nor file is available: long base64 copied through a model loses characters | |
| idempotencyKey | No | Dedupes retries of the SAME bytes; a rebuilt transaction is a new key |