Skip to content

This account may not be used to pay transaction fees #336

@Aviksaikat

Description

@Aviksaikat

Hi I'm getting this when trying to run anchor deploy on devnet & testnet while testing
https://github.com/solana-developers/program-examples/tree/main/tokens/create-token

Error: Account allocation failed: RPC response error -32002: Transaction simulation failed: This account may not be used to pay transaction fees 
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.

I have 16 SOLs on devnet

  • Anchor.toml
[toolchain]

[features]
resolution = true
skip-lint = false

[programs.localnet]
test = "HkP6uxB55uMYkfNAT2A2bjpZwRZz64f2nxta8mtnz4mM"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "devnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"


[test]
startup_wait = 10000
shutdown_wait = 10000

[test.validator]
bind_address = "0.0.0.0"
url = "https://api.mainnet-beta.solana.com"
ledger = ".anchor/test-ledger"
rpc_port = 8899

[[test.validator.clone]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"

Activity

adpthegreat

adpthegreat commented on Dec 16, 2024

@adpthegreat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Aviksaikat@adpthegreat

        Issue actions

          This account may not be used to pay transaction fees · Issue #336 · solana-developers/program-examples