prepare_sponsored_commit
Builds an unsigned SubmissionSponsor.sponsoredCommit transaction for a smart account to run commit/reveal calls, writes state for the reveal step, and accepts an externally posted EIP-4844 blob hash.
Instructions
Prepare an unsigned smart-account-callable SubmissionSponsor.sponsoredCommit transaction.
Use this when a smart account should execute the commit/reveal calls. The EIP-4844 blob still must be posted by an EOA or backend; pass blobHash when the blob was posted externally. The tool writes a state file used by prepare_sponsored_reveal.
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": {
"metadata": "<metadata>"
},
"name": "prepare_sponsored_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Optional output path for the submission state file | |
| sponsor | No | Optional SubmissionSponsor address override | |
| blobHash | No | Optional already-posted EIP-4844 versioned blob hash | |
| keystore | No | Keyless scope manifest created by init_submission_scope | .kaisign/submission-keystore.json |
| metadata | Yes | Path to the local ERC-7730 metadata JSON file | |
| targetAddress | No | Optional target deployment address when metadata has multiple deployments |