Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing API docs, v2/pumpfun/swap-sol #133

Open
slaesh opened this issue Dec 17, 2024 · 0 comments
Open

confusing API docs, v2/pumpfun/swap-sol #133

slaesh opened this issue Dec 17, 2024 · 0 comments

Comments

@slaesh
Copy link

slaesh commented Dec 17, 2024

I am wondering what the correct payload would be? =)

computePrice and tip? string or number? sol? lamports? :D

one could think that both are in lamports, since the uint64 type.. but in the example for the tip is then 0.001 given? and as a number, not a string.. could you clarify that?

and what about the slippage? this propery is not even mentioned in the offical docs, but stated in the type. is it a percentage? 0-100 or 0-1? =)

this is what the docs are saying as a payload:

image

this is what the ts-type is saying:

export interface PostPumpFunSwapRequestSol {
userAddress: string;
bondingCurveAddress: string;
tokenAddress: string;
solAmount: number;
slippage: number;
computeLimit: number;
computePrice: string;
tip?: string;
}

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant