Skip to main content
POST
Complete the swap

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Atomic swap id (ULID).

Body

application/json

POST /v2/swap/atomic/{id}/complete.

completion
object
required

rgb-lib's OnchainSwapCompletion, from complete_swap_proposal.

Response

Broadcast; the swap transaction id (the same on a retry).

completion
object
required

The finalized completion, handed out only once it was broadcast: the taker needs it for accept_swap_transfers, and a transaction already on the network is no option for anyone.

id
string
required
status
string
required
txid
string
required