Skip to content

Instantly share code, notes, and snippets.

@Cozy19
Forked from raccoons-bot/swap.json
Created March 27, 2024 23:15
Show Gist options
  • Save Cozy19/5710bbd6fb47afe89310743aebd1919f to your computer and use it in GitHub Desktop.
Save Cozy19/5710bbd6fb47afe89310743aebd1919f to your computer and use it in GitHub Desktop.
{
"percentDifference": null,
"quoteResponse": {
"contextSlot": 256843874,
"inAmount": "1000000000",
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"otherAmountThreshold": "14254443187926",
"outAmount": "14268711899825",
"outputMint": "D8r8XTuCrUhLheWeGXSwC3G92RhASficV3YA7B2XWcLv",
"platformFee": null,
"priceImpactPct": "0.0024680612795591975029201723",
"routePlan": [
{
"percent": 100,
"swapInfo": {
"ammKey": "4Ui9QdDNuUaAGqCPcDSp191QrixLzQiLxJ1Gnqvz3szP",
"feeAmount": "40",
"feeMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inAmount": "1000000000",
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"label": "Whirlpool",
"outAmount": "761984461",
"outputMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
}
},
{
"percent": 100,
"swapInfo": {
"ammKey": "DkVN7RKTNjSSER5oyurf3vddQU2ZneSCYwXvpErvTCFA",
"feeAmount": "7",
"feeMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"inAmount": "761984461",
"inputMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"label": "Whirlpool",
"outAmount": "5377925700",
"outputMint": "So11111111111111111111111111111111111111112"
}
},
{
"percent": 100,
"swapInfo": {
"ammKey": "Bv7mM5TwLxsukrRrwzEc6TFAj22GAdVCcH5ViAZFNZC",
"feeAmount": "13444814",
"feeMint": "So11111111111111111111111111111111111111112",
"inAmount": "5377925700",
"inputMint": "So11111111111111111111111111111111111111112",
"label": "Raydium",
"outAmount": "14268711899825",
"outputMint": "D8r8XTuCrUhLheWeGXSwC3G92RhASficV3YA7B2XWcLv"
}
}
],
"slippageBps": 10,
"swapMode": "ExactIn",
"timeTaken": 0.318058219
},
"swapSimulationResult": {
"simulateTransactionResult": {
"accounts": [
null
],
"err": {
"InstructionError": [
3,
{
"Custom": 6023
}
]
},
"logs": [
"Program ComputeBudget111111111111111111111111111111 invoke [1]",
"Program ComputeBudget111111111111111111111111111111 success",
"Program ComputeBudget111111111111111111111111111111 invoke [1]",
"Program ComputeBudget111111111111111111111111111111 success",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
"Program log: CreateIdempotent",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: GetAccountDataSize",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1569 of 1394295 compute units",
"Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Initialize the associated token account",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeImmutableOwner",
"Program log: Please upgrade to SPL Token 2022 for immutable owner support",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1405 of 1387708 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeAccount3",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4188 of 1383826 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20345 of 1399700 compute units",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 invoke [1]",
"Program log: Instruction: SharedAccountsRoute",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: TransferChecked",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 6200 of 1357315 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc invoke [2]",
"Program log: Instruction: Swap",
"Program log: fee_growth: 2089023409627",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [3]",
"Program log: Instruction: Transfer",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 1302054 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [3]",
"Program log: Instruction: Transfer",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 1294489 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc consumed 49231 of 1335534 compute units",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc success",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 invoke [2]",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 consumed 2021 of 1283466 compute units",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 success",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc invoke [2]",
"Program log: Instruction: Swap",
"Program log: AnchorError occurred. Error Code: InvalidTickArraySequence. Error Number: 6023. Error Message: Invalid tick array sequence provided for instruction..",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc consumed 19597 of 1265989 compute units",
"Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc failed: custom program error: 0x1787",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 consumed 132963 of 1379355 compute units",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: custom program error: 0x1787"
],
"returnData": null,
"unitsConsumed": 20645
},
"simulatedAmountChange": null
},
"swapTransaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAIFRFEo1p0T3tLNB3nEj/p71hJ9ObVjyqQdUgGii2NPbR+Dq51wJSKEFDIAva4Gt3kwkK2SJbFnIehcjhdEsPEyK0dS+tbu51EMziL9YyEowQthQBswiRLyXd27kVg844rtzwh8ACUL3LTD7G3MW0atZPyD1D+LXhKk4jJJjTtV0QDQhLFeE9MamN9oSHGaNk3M2AtpHJ65ARw6QD8zMsjMqVICQWpiLntK2guEcc4XkrviIMqTI3GSXlAHgZC7ORLcGZ/y1OFUjaxGSYPYSYxL38DI5jSwryQ6RMhtMx+2NckcTN9kd8r51/xwc6IwfXwKTzn7kVi9u4+BF+gf6rTEd2DM9iAN/h31i7IqIYtRjUrCayUuhCeVlB/CxTzuvl9xpVqQ2Kg5Hqv0deW6zcUXh4tuSlbmfqNK7VSa5d7xKc/sO8fVcSNdazbLbJBLZL63OUC4WUDrpCSXjSZPeEgNj++glJ4YQhD6z63/NkpoAZ6lhhxzCbp7RQDvxfqB2SrSOoN3KPGRDJDaQlGwEHSeW3A6yUxMwG6KYweAhJEesUnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAAR51VvyMcBu7nTFbs5oFQf9sbLeo/SOUQKxzaJWvBOPjJclj04kifG7PRApFI4NgwtaE5na/xCEBI572Nvp+FmagAv/TIc2iJbCD8FAc+vxy1qjdf6B/k29yCuk37deeLQ/+if11/ZKdMCbHylYed5LCas238ndUUsyGqezjOXotE7cJlfP35aWGIEE3CrWRUhrTW9YNEcOHUyiV3ZOCPfG+nrzvtutOj1l82qryXQxsbvkwtL24OR8pgIDRS9dYXaIydjhRAm4a+rUpnmit+8PDf6Ei6r7TTxLNZYuhhN+BA4ABQLAXBUADgAJAwQXAQAAAAAAEAYAAgATDSUBAQ83JREABAYJAhQTDw8SDyclERUKFgYXDAULKiclESIKJAcjAwgBLCklGCggHB4mIRsaHR8ZKwcJES7BIJszQdacgQIDAAAAEQBkAAERAWQBAgdkAgMAypo7AAAAALESgTH6DAAACgAAAwrd7OlniTrkk7n3FFRrmwSQr7WoiV9Js2hWukyq6EcMA+rs6wYJBYIGAe2TMUbpMksjAMaaHS57ooBZJk+LVtrzhZ77hoop8a2X+ArNztDLUMxOUcfRAU/+KNUryT7Z4kZ4NkuKeL72i/UgFgDO1l/DiS2+hRWwVQN/np0BgQ=="
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment