Orders
Order
GET
/
orders
/
{order}
Get matched order by ID.
Copy
Ask AI
curl --request GET \
--url https://{environment}.garden.finance/v2/orders/{order} \
--header 'garden-app-id: <api-key>'
Copy
Ask AI
{
"status": "Ok",
"error": "<string>",
"result": {
"order_id": "<string>",
"created_at": "<string>",
"source_swap": {
"created_at": "<string>",
"swap_id": "<string>",
"chain": "bitcoin",
"asset": "bitcoin:btc",
"initiator": "<string>",
"redeemer": "<string>",
"delegate": "<string>",
"timelock": 123,
"filled_amount": "<string>",
"asset_price": 123,
"amount": "<string>",
"secret_hash": "<string>",
"secret": "<string>",
"instant_refund_tx": "<string>",
"initiate_tx_hash": "<string>",
"redeem_tx_hash": "<string>",
"refund_tx_hash": "<string>",
"initiate_block_number": "<string>",
"redeem_block_number": "<string>",
"refund_block_number": "<string>",
"required_confirmations": 123,
"current_confirmations": 123,
"initiate_timestamp": "<string>",
"redeem_timestamp": "<string>",
"refund_timestamp": "<string>"
},
"destination_swap": {
"created_at": "<string>",
"swap_id": "<string>",
"chain": "bitcoin",
"asset": "bitcoin:btc",
"initiator": "<string>",
"redeemer": "<string>",
"delegate": "<string>",
"timelock": 123,
"filled_amount": "<string>",
"asset_price": 123,
"amount": "<string>",
"secret_hash": "<string>",
"secret": "<string>",
"instant_refund_tx": "<string>",
"initiate_tx_hash": "<string>",
"redeem_tx_hash": "<string>",
"refund_tx_hash": "<string>",
"initiate_block_number": "<string>",
"redeem_block_number": "<string>",
"refund_block_number": "<string>",
"required_confirmations": 123,
"current_confirmations": 123,
"initiate_timestamp": "<string>",
"redeem_timestamp": "<string>",
"refund_timestamp": "<string>"
},
"slippage": 0.5,
"nonce": "<string>",
"affiliate_fees": [
{
"address": "<string>",
"asset": "ethereum:cbbtc",
"fee": 0.1
}
],
"integrator": "<string>",
"version": "<string>"
}
}
Retrieve detailed information about a specific order by its ID.
Authorizations
Path Parameters
Response
200 - application/json
Object with order details.
The response is of type object
.
Was this page helpful?
Get matched order by ID.
Copy
Ask AI
curl --request GET \
--url https://{environment}.garden.finance/v2/orders/{order} \
--header 'garden-app-id: <api-key>'
Copy
Ask AI
{
"status": "Ok",
"error": "<string>",
"result": {
"order_id": "<string>",
"created_at": "<string>",
"source_swap": {
"created_at": "<string>",
"swap_id": "<string>",
"chain": "bitcoin",
"asset": "bitcoin:btc",
"initiator": "<string>",
"redeemer": "<string>",
"delegate": "<string>",
"timelock": 123,
"filled_amount": "<string>",
"asset_price": 123,
"amount": "<string>",
"secret_hash": "<string>",
"secret": "<string>",
"instant_refund_tx": "<string>",
"initiate_tx_hash": "<string>",
"redeem_tx_hash": "<string>",
"refund_tx_hash": "<string>",
"initiate_block_number": "<string>",
"redeem_block_number": "<string>",
"refund_block_number": "<string>",
"required_confirmations": 123,
"current_confirmations": 123,
"initiate_timestamp": "<string>",
"redeem_timestamp": "<string>",
"refund_timestamp": "<string>"
},
"destination_swap": {
"created_at": "<string>",
"swap_id": "<string>",
"chain": "bitcoin",
"asset": "bitcoin:btc",
"initiator": "<string>",
"redeemer": "<string>",
"delegate": "<string>",
"timelock": 123,
"filled_amount": "<string>",
"asset_price": 123,
"amount": "<string>",
"secret_hash": "<string>",
"secret": "<string>",
"instant_refund_tx": "<string>",
"initiate_tx_hash": "<string>",
"redeem_tx_hash": "<string>",
"refund_tx_hash": "<string>",
"initiate_block_number": "<string>",
"redeem_block_number": "<string>",
"refund_block_number": "<string>",
"required_confirmations": 123,
"current_confirmations": 123,
"initiate_timestamp": "<string>",
"redeem_timestamp": "<string>",
"refund_timestamp": "<string>"
},
"slippage": 0.5,
"nonce": "<string>",
"affiliate_fees": [
{
"address": "<string>",
"asset": "ethereum:cbbtc",
"fee": 0.1
}
],
"integrator": "<string>",
"version": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.