POST
/
contracts
/
directSwap
/
createOffer
Create an offer
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>"
}

Authorizations

api-key
string
header
required

Project API Key

Body

application/json

Response

200
application/json

Offer created successfully

Unsigned transaction