cURL
curl --request GET \ --url https://mainnet.gomaestro-api.org/v1/contracts/directSwap/getOffers/{address} \ --header 'api-key: <api-key>'
[ { "outRef": { "tx_hash": "<string>", "output_index": 123 }, "datum": { "creator": { "paymentCredential": [ "<string>" ], "stakeCredential": [ [ "<string>" ] ] }, "toBuy": { "policyId1": { "assetName1": "123" }, "policyId2": { "assetName2": "456" }, "policyId3": { "assetName3": "789" } } }, "assets": { "policyId1assetName1": "123", "policyId2assetName2": "456", "policyId3assetName3": "789" } } ]
Get all direct swap offers created by a specific Cardano address with details and current status.
Project API Key
User's bech32 address
Offers retrieved successfully
The response is of type object[].
object[]
Was this page helpful?