Language

Choose a language

/build/rpc / adaptor

adaptor.unlock_all

adaptor.unlock_all Unlock all Fair-Sign ceremony UTXOs and clean up expired sessions. Use this to recover from stuck ceremonies or locked coins. Result: { (json object) "unlocked_count" : n, (numeric) Number of UTXOs unlocked "sessions_cleaned" : n (numeric) Number of expired sessions removed } Examples: > bitcoin-cli adaptor.unlock_all > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "adaptor.unlock_all", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

adaptor.unlock_all() → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"adaptor.unlock_all","params":[]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

No parameters.

Result

Type:  any

{ (json object) "unlocked_count" : n, (numeric) Number of UTXOs unlocked "sessions_cleaned" : n (numeric) Number of expired sessions removed }

Source: services/core-node/bcore/src/wallet/rpc/adaptor.cpp:3994

C++ symbol: adaptor_unlock_all