cURL
curl --request POST \ --url https://{environment}.garden.finance/v2/orders \ --header 'Content-Type: application/json' \ --header 'garden-app-id: <api-key>' \ --data '{ "source": { "asset": "arbitrum:ibtc", "owner": "<string>", "delegate": "<string>", "amount": "<string>" }, "destination": { "asset": "arbitrum:ibtc", "owner": "<string>", "delegate": "<string>", "amount": "<string>" }, "slippage": 50, "secret_hash": "0x057ff5cacab1d75df04e8e9d349f0d8dd92e87b989244b934d9b09bc99fc4173", "nonce": "<string>", "affiliate_fees": [ { "address": "<string>", "asset": "arbitrum:usdc", "fee": 10 } ] }'
{ "status": "Ok", "error": "<string>", "result": { "order_id": "<string>", "to": "<string>", "amount": 123 } }
If you do not yet have an app ID, please follow these steps.
Object with required information to initiate order on source chain.
The response is of type object.
object
Was this page helpful?