Language

Choose a language

/build/rpc / cosign / bulletin_board

cosign.list_requests

cosign.list_requests List pending trade requests (maker checks incoming DMs). Result: { (json object) "success" : true|false, (boolean) Whether query succeeded "requests" : [ (json array) List of pending requests { (json object) "id" : "str", (string) Request ID "offer_id" : "str", (string) Offer ID "taker_pubkey" : "hex", (string) Taker's Nostr pubkey "timestamp" : n, (numeric) Unix timestamp "message" : "str", (string) Optional message from taker "status" : "str" (string) pending|accepted|rejected }, ... ] } Examples: > bitcoin-cli cosign.list_requests > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "cosign.list_requests", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

cosign.list_requests() → any

Code samples

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

Parameters

No parameters.

Result

Type:  any

{ (json object) "success" : true|false, (boolean) Whether query succeeded "requests" : [ (json array) List of pending requests { (json object) "id" : "str", (string) Request ID "offer_id" : "str", (string) Offer ID "taker_pubkey" : "hex", (string) Taker's Nostr pubkey "timestamp" : n, (numeric) Unix timestamp "message" : "str", (string) Optional message from taker "status" : "str" (string) pending|accepted|rejected }, ... ] }

Source: services/core-node/bcore/src/rpc/cosign.cpp:2067

C++ symbol: cosign_list_requests