Coming Soon
Withdraw from Aave to 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_withdraw",
"title": "Withdraw from Aave"
},
"outOperation": true,
"quote": {
"amount": "197373",
"destinationAsset": "nep141:sol.omft.near",
"originAsset": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
"slippageTolerance": 100
},
"steps": [
{
"functionSignature": "withdraw(address,uint256,address)",
"parameters": [
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"197373",
"0xFe6EF968D2F7B2e9CCCF92150d96c930C3CC4a4E"
],
"to": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
"value": "0"
},
{
"functionSignature": "transfer(address,uint256)",
"parameters": [
"{DEPOSIT_ADDRESS}",
"197373"
],
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "0"
}
],
"type": "evm"
});
});
const execution = await response.json();3
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": "74e0cbfe-def3-47fb-8f1c-469778c6acbc",
"publicKey": "ed25519:BTKcXNp1wSzs9Mp2ejsPrHLr59z5UkEDJgqcWyXGhGc4",
"signature": "ed25519:466cjq2diW62zHhHik8hQQGLjLTg2drnZCEjBxDnUDZCoN4HmcXv4F4WTe2LqDgJk8Ccaq1rjusA47DeUWKegNy1"
})
});
const execution = await response.json();Last updated
