yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
302 stars 192 forks source link

reason: 'insufficient funds for intrinsic transaction cost', #88

Open pamarthisai opened 2 years ago

pamarthisai commented 2 years ago

reason: 'insufficient funds for intrinsic transaction cost', code: 'INSUFFICIENT_FUNDS', error: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32000,\"message\":\"insufficient funds for gas price + value\"},\"id\":82}", error={"code":-32000}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0x02f903f6818982097585efd0c8bc1385efd0c8bc1383e4e1c0946b8bfefa7a74efb3f6dcbdd9663ad947fe3ed10a80b903840cdabeba0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000aae10fa31e73287687ce56ec90f81a800361b89800000000000000000000000000000000000000000000000000000004a817c800000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff00000000000000000000000000000000000000000000000000000000000000020000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a0630000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063c001a0f27c77492b08862cf150d60f4236016c7708dc15b18047bc08187d275c3e9193a05a0196fc0c30c1af25d798f10035205a89a7650b8354f60be649a7e140ef88dc\"],\"id\":82,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://polygon-mainnet.g.alchemy.com/v2/hFvhRyorjO0YWqzc-uQW8suTXGQuhA1p", code=SERVER_ERROR, version=web/5.5.1) at Logger.makeError (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\logger\lib\index.js:199:21) at Logger.throwError (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\logger\lib\index.js:208:20) at C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:301:32 at step (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:33:23) at Object.next (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:14:53) at fulfilled (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { reason: 'processing response error', code: 'SERVER_ERROR', body: '{"jsonrpc":"2.0","error":{"code":-32000,"message":"insufficient funds for gas price + value"},"id":82}', error: Error: insufficient funds for gas * price + value at getResult (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:142:21) at processJsonFunc (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:344:22) at C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:276:46 at step (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:33:23) at Object.next (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:14:53) at fulfilled (C:\Users\vkart\Desktop\bot\poly-flashloan-bot-main\node_modules\@ethersproject\web\lib\index.js:5:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: -32000, data: undefined }, requestBody: '{"method":"eth_sendRawTransaction","params":["0x02f903f6818982097585efd0c8bc1385efd0c8bc1383e4e1c0946b8bfefa7a74efb3f6dcbdd9663ad947fe3ed10a80b903840cdabeba0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000aae10fa31e73287687ce56ec90f81a800361b89800000000000000000000000000000000000000000000000000000004a817c800000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff00000000000000000000000000000000000000000000000000000000000000020000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a0630000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063c001a0f27c77492b08862cf150d60f4236016c7708dc15b18047bc08187d275c3e9193a05a0196fc0c30c1af25d798f10035205a89a7650b8354f60be649a7e140ef88dc"],"id":82,"jsonrpc":"2.0"}', requestMethod: 'POST', url: 'https://polygon-mainnet.g.alchemy.com/v2/hFvhRyorjO0YWqzc-uQW8suTXGQuhA1p' }, method: 'sendTransaction', transaction: { type: 2, chainId: 137, nonce: 2421, maxPriorityFeePerGas: BigNumber { _hex: '0xefd0c8bc13', _isBigNumber: true }, maxFeePerGas: BigNumber { _hex: '0xefd0c8bc13', _isBigNumber: true }, gasPrice: null, gasLimit: BigNumber { _hex: '0xe4e1c0', _isBigNumber: true }, to: '0x6B8bfEFA7A74eFb3F6dcbdD9663Ad947Fe3ED10A', value: BigNumber { _hex: '0x00', _isBigNumber: true }, data: '0x0cdabeba0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000aae10fa31e73287687ce56ec90f81a800361b89800000000000000000000000000000000000000000000000000000004a817c800000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff00000000000000000000000000000000000000000000000000000000000000020000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a0630000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063', accessList: [], hash: '0x8b6b1158e1ecb6c13a301c7b3cff8125e6cfc21843d34be5ca064f2df399ec2b', v: 1, r: '0xf27c77492b08862cf150d60f4236016c7708dc15b18047bc08187d275c3e9193', s: '0x5a0196fc0c30c1af25d798f10035205a89a7650b8354f60be649a7e140ef88dc', from: '0x936bb3D6492190FCf0d619a2f04DD54E622ad376', confirmations: 0 }, transactionHash: '0x8b6b1158e1ecb6c13a301c7b3cff8125e6cfc21843d34be5ca064f2df399ec2b' }

h4ckm1n-dev commented 2 years ago

I have the same problem has you, how many Matic do you have in your wallet ?

pamarthisai commented 2 years ago

yes i have 50 matic in my wallet

h4ckm1n-dev commented 2 years ago

have 10 MATIC in the wallet and all transaction end with the same error has you and none are ablle to appear in the contract. do you see them in the contract ?

pamarthisai commented 2 years ago

no because that is all 0 confirmation transactions