Execute order
post
Execute publishes a signed PSBT for an AMM swap.
Authorizations
Body
providerCodestringRequired
orderIdstringOptional
psbtstringRequired
btcAddressstringRequired
btcPubKeystringRequired
ordAddressstringRequired
ordPubKeystringRequired
identifierstringOptional
Responses
200
Default Response
application/json
400
Invalid input
application/json
401
Unauthorized
application/json
404
Not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
post
/v1/swaps/amm/execute-orderPOST /v1/swaps/amm/execute-order HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 205
{
"providerCode": "<provider code from place order>",
"orderId": "<order id from place order>",
"psbt": "....",
"btcAddress": "bc1q7...",
"btcPubKey": "03b43bed...",
"ordAddress": "bc1phr...",
"ordPubKey": "2b0647e..."
}{
"txid": "text"
}Last updated