Coming Soon
Deposit into Aave from Solana
1
2
Request an execution
const response = await fetch(`https://intents-connect-alpha-api.aurora.dev/api/v1/executions/${solanaWalletAccount}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"dry": false,
"metadata": {
"intent": "aave_supply",
"title": "Supply to Aave"
},
"quote": {
"amount": "1270000",
"destinationAsset": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
"originAsset": "nep141:sol.omft.near",
"slippageTolerance": 100
},
"steps": [
{
"functionSignature": "approve(address,uint256)",
"parameters": [
"0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
"{MIN_AMOUNT_OUT}"
],
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"value": "0"
},
{
"functionSignature": "supply(address,uint256,address,uint16)",
"parameters": [
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"{MIN_AMOUNT_OUT}",
"0xFe6EF968D2F7B2e9CCCF92150d96c930C3CC4a4E",
"0"
],
"to": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
"value": "0"
}
],
"type": "evm"
})
});
const execution = await response.json();4
Submit the digest
const response = await fetch(`https://intents-connect-alpha-api.aurora.dev/api/v1/executions/${solanaWalletAccount}/submit`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"executionId": "92a10832-d36b-46c6-807d-7f28469c2a94",
"publicKey": "ed25519:BTKcXNp1wSzs9Mp2ejsPrHLr59z5UkEDJgqcWyXGhGc4",
"signature": "ed25519:5VUXRtVgS6bq3Wn64YdCt5NSPfA1Ni5zqiLFsSScyq6Dj53pbNEcwKcp7t1aRqw8zWCoN7coMLBUmatmwLAEvndP"
})
});
const execution = await response.json();Last updated
