Language

Choose a language

/build/rpc / cosign / governance

cosign.send_proposal_response_manual

cosign.send_proposal_response_manual "proposal_id" "holder_pubkey" ( approve ) Manually approve or deny a private governance access request. Issuer use only. When approve=true, sends full proposal details to verified holder. When approve=false, no response is sent (denial by silence). Arguments: 1. proposal_id (string, required) Proposal ID to respond to 2. holder_pubkey (string, required) Holder's nostr pubkey (from access request) 3. approve (boolean, optional, default=true) Approve (true) or deny (false) the request Result: { (json object) "success" : true|false, (boolean) Whether the operation succeeded "action" : "str", (string) Action taken: 'approved' or 'denied' "event_id" : "str", (string, optional) Nostr event ID (if approved) "sent_at" : n (numeric, optional) Timestamp when sent (if approved) } Examples: > bitcoin-cli cosign.send_proposal_response_manual "prop123..." "npub1..." true > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "cosign.send_proposal_response_manual", "params": ["prop123...", "npub1...", true]}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

cosign.send_proposal_response_manual(proposal_id: string, holder_pubkey: string, approve?: boolean) → any

Code samples

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

Parameters

NameTypeReq.Description
proposal_idstringyesProposal ID to respond to
holder_pubkeystringyesHolder's nostr pubkey (from access request)
approvebooleanApprove (true) or deny (false) the request

Result

Type:  any

{ (json object) "success" : true|false, (boolean) Whether the operation succeeded "action" : "str", (string) Action taken: 'approved' or 'denied' "event_id" : "str", (string, optional) Nostr event ID (if approved) "sent_at" : n (numeric, optional) Timestamp when sent (if approved) }

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

C++ symbol: cosign_send_proposal_response_manual