⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getMinimumBalanceForRentExemption

dropdown

# getMinimumBalanceForRentExemption example for Solana (SOL)

POST getMinimumBalanceForRentExemption

Returns minimum balance required to make account rent exempt.

Parameters

usize - integer

account data lenght

commitment - object

Optional.

commitment

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getMinimumBalanceForRentExemption",
"params": [5, null],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": 925680
}