POST
/
v1
/
instructions
/
compose
Compose multiple instructions and intents
curl --request POST \
  --url https://api.biconomy.io/v1/instructions/compose \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '[
  {
    "type": "/instructions/build",
    "data": {
      "functionSignature": "function transfer(address to, uint256 amount)",
      "args": [
        "<string>"
      ],
      "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "chainId": 8453,
      "value": "0",
      "gasLimit": "50000"
    }
  }
]'
{
  "instructions": [
    {
      "calls": [
        {
          "to": "0x1111111254EEB25477B68fb85Ed929f73A960582",
          "value": "0",
          "functionSig": "transfer(address,uint256)",
          "inputParams": [
            {
              "fetcherType": 0,
              "paramData": "0x742d35C9a91B1D5b5D24Dc30e8F0dF8E84b5d1c4",
              "constraints": [
                {
                  "constraintType": 0,
                  "referenceData": "1000"
                }
              ]
            }
          ],
          "outputParams": [
            {
              "fetcherType": 0,
              "paramData": "0x"
            }
          ]
        }
      ],
      "chainId": 1,
      "isComposable": true
    }
  ],
  "returnedData": [
    "<any>"
  ]
}

Authorizations

X-API-Key
string
header
required

Body

application/json · object[]

Body

Response

200
application/json

Response object that includes an array of composed MEE instructions

The response is of type object.