Skip to content

ConstraintSeeds Error (0x7d6) for creator_vault with sdk.createAndBuy() #114

Description

@vin-spiegel

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

  1. Initialize PumpFunSDK in a standard manner.
  2. Prepare a new mintKeypair for the token, a payerKeypair, and the token metadata.
  3. 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"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions