Language

Choose a language

/build/rpc / contracts / spot

spot.import_acceptance

spot.import_acceptance "id" {} Import a spot acceptance JSON payload and attach it to a stored offer. Arguments: 1. id (string, required) Spot offer identifier 2. acceptance (json object, required) Acceptance payload { } Result: { (json object) "accept_id" : "hex", (string) Acceptance identifier "acceptance" : { (json object) Canonical acceptance payload ... } } Examples: > bitcoin-cli spot.import_acceptance "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" {..}

Signature

spot.import_acceptance(id: string, acceptance: object) → any

Code samples

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

Parameters

NameTypeReq.Description
idstringyesSpot offer identifier
acceptanceobjectyesAcceptance payload { }

Result

Type:  any

{ (json object) "accept_id" : "hex", (string) Acceptance identifier "acceptance" : { (json object) Canonical acceptance payload ... } }

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

C++ symbol: spot_import_acceptance