cURL
curl --request POST \ --url https://mainnet.gomaestro-api.org/v1/contracts/directSwap/createOffer \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "sender": "<string>", "offer": { "policyId1assetName1": "123", "policyId2assetName2": "456", "policyId3assetName3": "789" }, "toBuy": { "policyId1assetName1": "123", "policyId2assetName2": "456", "policyId3assetName3": "789" } }'
{ "cbor_hex": "<string>", "tx_hash": "<string>" }
Create a new peer-to-peer asset swap offer on Cardano using managed smart contracts for trustless token exchanges.
Project API Key
Offer created successfully
Unsigned transaction
Was this page helpful?