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 '{
  "ownerAddress": "0x742d35cc6639cb8d4b5d1c5d7b8b5e2e7c0c7a8a",
  "mode": "smart-account",
  "composeFlows": [
    {
      "type": "/instructions/build",
      "data": {
        "functionSignature": "function transfer(address to, uint256 amount)",
        "args": [
          "<any>"
        ],
        "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
        "chainId": 8453,
        "value": "0",
        "gasLimit": "50000"
      },
      "batch": true
    }
  ]
}'
{
  "instructions": [
    {
      "calls": [
        {
          "to": "0x1111111254EEB25477B68fb85Ed929f73A960582",
          "value": "0",
          "functionSig": "transfer(address,uint256)",
          "inputParams": [
            {
              "fetcherType": 0,
              "paramData": "0x742d35C9a91B1D5b5D24Dc30e8F0dF8E84b5d1c4",
              "constraints": []
            }
          ],
          "outputParams": [
            {
              "fetcherType": 0,
              "paramData": "0x"
            }
          ]
        }
      ],
      "chainId": 1,
      "isComposable": true
    }
  ],
  "returnedData": [
    "<any>"
  ]
}

Authorizations

X-API-Key
string
header
required

API Key required to access Supertransaction API. Example: mee_2w3mXCuyt4xVXDRCZ5k5Lhgs

Body

application/json

Body

This API allows developers to specify a build, intent-simple, or intent operation in a single request which can be composed as a complex request

ownerAddress
string
required

EOA wallet address which will be the owner of your orchestrator accounts

Example:

"0x742d35cc6639cb8d4b5d1c5d7b8b5e2e7c0c7a8a"

mode
enum<string>
required
Available options:
smart-account,
eoa,
eoa-7702
composeFlows
object[]
required
Required array length: 1 - 10 elements

Response

Response object that includes an array of composed MEE instructions

instructions
object[]
required
returnedData
any[]
required