Language

Choose a language

/build/rpc / contracts / spot

spot.export_offer

spot.export_offer "id" Return the canonical offer JSON for a stored spot offer. Arguments: 1. id (string, required) Offer identifier Result: { (json object) "offer" : { (json object) Canonical spot offer payload ... } } Examples: > bitcoin-cli spot.export_offer "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

Signature

spot.export_offer(id: string) → any

Code samples

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

Parameters

NameTypeReq.Description
idstringyesOffer identifier

Result

Type:  any

{ (json object) "offer" : { (json object) Canonical spot offer payload ... } }

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

C++ symbol: spot_export_offer