Solana API does not work properly

Following the official doc on getting Solana balance and NFTs. The same piece of code just worked last week but it doesn’t work properly today. Whenever the request sent, I would receive the following error:
POST https://byomxqkuenna.usemoralis.com:2053/server/functions/sol-balance 400

Here is the code:

        const balance = await account.balance(
            {
                // @ts-ignore
                network: "devnet",
                address: user!.get("solAddress"),
            })

hook setup:

    const {authenticate, isAuthenticated, isAuthenticating, user, logout} = useMoralis();

    const {account, SolanaAPI} = useMoralisSolanaApi();

Server version: v0.0.374

Client lib version:

    "moralis": "^1.8.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-moralis": "^1.4.0",

Any help would be appreciated. Thanks.

do you have some specific examples that don’t work now? like some addresses

I resolved the issue by following this thread

1 Like