Language

Choose a language

/build/rpc / contracts / forward

forward.list_offers

forward.list_offers List all forward contract offers in wallet registry. Result: [ (json array) { (json object) "offer_id" : "hex", (string) Unique offer identifier "state" : "str" (string) Contract state }, ... ] Examples: > bitcoin-cli forward.list_offers

Signature

forward.list_offers() → any

Code samples

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

Parameters

No parameters.

Result

Type:  any

[ (json array) { (json object) "offer_id" : "hex", (string) Unique offer identifier "state" : "str" (string) Contract state }, ... ]

Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:14728

C++ symbol: forward_list_offers