[SOLVED] Solana API returning 400 error

I am trying the Solana API, via the test enpoint web page, I am getting a 400 error.

For example, when I call the Get native balance by wallet API, with “2Q1xNVRzVvjSHEmUYY6jk2WAfN7gkxenSQxQa95hwcG3” as the address, I get the following result:

{
“statusCode”: 400,
“message”: “Bad Request”
}

Looks like an issue with that docs page - if you select devnet and then mainnet again it should work.

Thanks. It works when I toggle the network setting back and forth

1 Like