/build/rpc / contracts / forward
forward.sign_over_channel
- workflowforward-lifecycle·step 5 of 10Workflow: forward-lifecycle · step 5 of 10
forward.sign_over_channel "session_id" "psbt" ( is_initiator ) Coordinate Fair-Sign ceremony over an active cosign session. Sends nonce commitments, exchanges partial signatures, and completes the signing process. Arguments: 1. session_id (string, required) Active cosign session identifier 2. psbt (string, required) Partially Signed Bitcoin Transaction (base64) 3. is_initiator (boolean, optional) Whether this party initiates the ceremony (default: true) Result: { (json object) "psbt" : "str", (string) Completed PSBT with all signatures (base64) "ceremony_stats" : { (json object) Ceremony statistics "messages_sent" : n, (numeric) Number of messages sent "messages_received" : n, (numeric) Number of messages received "duration_ms" : n (numeric) Ceremony duration in milliseconds } } Examples: > bitcoin-cli forward.sign_over_channel "69d967c0e415c9a3" "cHNidP8BA..." true
Signature
forward.sign_over_channel(session_id: string, psbt: string, is_initiator?: boolean) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"forward.sign_over_channel","params":["\"<session_id>\"","\"<psbt>\"",false]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| session_id | string | yes | Active cosign session identifier |
| psbt | string | yes | Partially Signed Bitcoin Transaction (base64) |
| is_initiator | boolean | — | Whether this party initiates the ceremony (default: true) |
Result
Type: any
{ (json object) "psbt" : "str", (string) Completed PSBT with all signatures (base64) "ceremony_stats" : { (json object) Ceremony statistics "messages_sent" : n, (numeric) Number of messages sent "messages_received" : n, (numeric) Number of messages received "duration_ms" : n (numeric) Ceremony duration in milliseconds } }
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:14419
C++ symbol: forward_sign_over_channel