/build/rpc / contracts / spot
spot.mark_executed
- workflowspot-trade·step 9 of 9Workflow: spot-trade · step 9 of 9
spot.mark_executed "id" "txid" Record the settlement transaction ID for a spot atomic swap offer. This is used by contract.list to distinguish between 'accepted' and 'executed' states. Arguments: 1. id (string, required) Spot offer identifier 2. txid (string, required) Settlement transaction ID (hex) Result: { (json object) "id" : "hex", (string) Spot offer identifier "settle_txid" : "hex" (string) Recorded settlement transaction ID } Examples: > bitcoin-cli spot.mark_executed "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
Signature
spot.mark_executed(id: string, txid: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"spot.mark_executed","params":["\"<id>\"","\"<txid>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| id | string | yes | Spot offer identifier |
| txid | string | yes | Settlement transaction ID (hex) |
Result
Type: any
{ (json object) "id" : "hex", (string) Spot offer identifier "settle_txid" : "hex" (string) Recorded settlement transaction ID }
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:9834
C++ symbol: spot_mark_executed