getBalance

All the specifications for getBalance RPC Method on Solana

Returns the lamport balance of the account of provided an account address (PublicKey)

Parameters required for this RPC call

  • The account address for which we are fetching the account info. This is usually provided as a string.

  • configuration object: This contains the following parameters.

    • commitment: The commitment describes how finalized a block is at that point in time.

    • minContextSlot: The minimum slot that the request can be evaluated at.

curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
  POST -H "Content-Type: application/json" -d ' 
   {
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getBalance",
     "params": [
       "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
       {
         "commitment": "finalized"
       }
     ]
   }
 '

Last updated

Was this helpful?