pset_update_input
Updates a PSET input with UTXO data such as txid, vout, amount, asset, and scriptPubKey so the transaction can be finalized correctly.
Instructions
Update a PSET input with UTXO data (txid, vout, amount, asset, scriptPubKey). Uses hal-simplicity-signer (pset-signer branch). Required before finalizing the PSET.
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": {
"pset": "<pset>",
"txid": "<txid>",
"vout": "<vout>",
"amount": "<amount>"
},
"name": "pset_update_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pset | Yes | The PSET to update (base64 or hex encoded) | |
| txid | Yes | Transaction ID of the UTXO being spent | |
| vout | Yes | Output index of the UTXO being spent | |
| asset | No | Asset ID (optional, defaults to L-BTC) | |
| amount | Yes | Amount in satoshis of the UTXO | |
| script_pubkey | No | Script pubkey of the UTXO (optional) |