curl --request POST \
--url https://api.biconomy.io/v1/instructions/intent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"slippage": 0.003,
"receiver": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"inputPositions": [
{
"chainToken": {
"chainId": 8453,
"tokenAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"amount": "1000000"
}
],
"targetPositions": [
{
"chainToken": {
"chainId": 8453,
"tokenAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"weight": 0.5
}
]
}'
{
"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
}
]
}
Build complex intents for your supertransaction
curl --request POST \
--url https://api.biconomy.io/v1/instructions/intent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"slippage": 0.003,
"receiver": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"inputPositions": [
{
"chainToken": {
"chainId": 8453,
"tokenAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"amount": "1000000"
}
],
"targetPositions": [
{
"chainToken": {
"chainId": 8453,
"tokenAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"weight": 0.5
}
]
}'
{
"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
}
]
}
Body
Intent request object
Response containing MEE instructions
The response is of type object
.