DEV Community

Luke Harold Miles
Luke Harold Miles

Posted on

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)