sign_transaction
Sign a Bitcoin transaction input with a private key. Provide the transaction hex and private key; optionally set sighash type to authorize spending.
Instructions
Sign a transaction input with a private key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hex | Yes | Transaction as hex string. | |
| privkey | Yes | Private key as hex string. | |
| sighash_type | No | Sighash type (default: 1 = SIGHASH_ALL). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |