chainstacklabs / pump-fun-bot

A fully functional pump.fun trading and sniping bot not relying on any 3rd party APIs
101 stars 49 forks source link

Why every buy transcation will create a account ? #9

Closed tigermumu closed 3 weeks ago

tigermumu commented 3 weeks ago

Buy token step is : step1 : SyQHeAf8fg2MipUQeKrcmjJf1CsArLKWGdKHcCEVLdMxfT7jm12f5NLZDW6S6eW4ffjDikZsjApVFZ4h4Ln5kz3 Associated Token Account Program: create

step2 : 5nhU6wbWboPs4jQMStmwenmPeVo916K91XSZT8sjrdFAQypbkatnSL3V9qpcwrHtt1oeQKjJsKPTjcPJ2tayykXE Pump.fun: buy

Why have to create first? Could I pass step 1?

image

akegaviar commented 3 weeks ago

It needs an associated token account to hold the token you are buying.

tigermumu commented 3 weeks ago

Yes,I have already added create_ata_ix to 1 Tx.