How can I buy token created by someone on pumpfun?
Closed this issue · 2 comments
tayyabwahid commented
Let's say ABC is my wallet that has some sols.
This is the token URL https://pump.fun/BivBq2jUr4zd9XvH683Dzm814mJ3VMECpoUb2byEpump.
How can I create a mint keypair from the existing token?
const mint = getOrCreateKeypair(KEYS_FOLDER, "mint");
Like in this line of code, you generate a new mint for creating the new token. But in my case, I want to buy a token created by someone else.
rckprtr commented
Yes, the mint of the token is let mint = new Publickey('BivBq2jUr4zd9XvH683Dzm814mJ3VMECpoUb2byEpump')
so just purchase that token at that address.
tayyabwahid commented