Hello, I'm encountering an error during transaction simulation when calling the sdk.createAndBuy function, related to a ConstraintSeeds violation for the creator_vault account (error code 0x7d6).
Problem Description
When attempting to create a new token and immediately buy a portion of it using the sdk.createAndBuy function, the transaction simulation fails. The error logs indicate a ConstraintSeeds violation for the creator_vault account (AnchorError, Error Number 2006, custom program error 0x7d6).
Steps to Reproduce
- Initialize
PumpFunSDK in a standard manner.
- Prepare a new
mintKeypair for the token, a payerKeypair, and the token metadata.
- Call the
sdk.createAndBuy(payerKeypair, mintKeypair, tokenMetadata, ...) function with standard arguments.
Actual Outcome
The transaction simulation fails with error logs similar to the following:
Message: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x7d6.
Logs:
[
...
"Program log: AnchorError caused by account: creator_vault. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated.",
...
"Program ... failed: custom program error: 0x7d6"
]
Hello, I'm encountering an error during transaction simulation when calling the
sdk.createAndBuyfunction, related to aConstraintSeedsviolation for thecreator_vaultaccount (error code0x7d6).Problem Description
When attempting to create a new token and immediately buy a portion of it using the
sdk.createAndBuyfunction, the transaction simulation fails. The error logs indicate aConstraintSeedsviolation for thecreator_vaultaccount (AnchorError, Error Number 2006, custom program error 0x7d6).Steps to Reproduce
PumpFunSDKin a standard manner.mintKeypairfor the token, apayerKeypair, and the token metadata.sdk.createAndBuy(payerKeypair, mintKeypair, tokenMetadata, ...)function with standard arguments.Actual Outcome
The transaction simulation fails with error logs similar to the following: