DEV Community

Luke Miles
Luke Miles

Posted on

3 3

getSignaturesForAddress null on localnet

If you're using solana-test-validator to test your smart contracts on solana you may have noticed that getSignaturesForAddress() returns false null values after a few minutes. It turns out there is a command-line argument on the validator:

solana-test-validator --help
    --limit-ledger-size <SHRED_COUNT>
        Keep this amount of shreds in root slots. [default: 10000]
Enter fullscreen mode Exit fullscreen mode

Just increase that value! Or use devnet. And check your RPC's value too.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay