getMinimumBalanceForRentExemption RPC Method

Returns minimum balance required to make account rent exempt.

Request
$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getMinimumBalanceForRentExemption",
> "params": [
> 50
> ]
> }
> '

params

usizerequired

The Account's data length

objectoptional

Configuration object containing the following fields:

result

Response
{
"jsonrpc": "2.0",
"result": 500,
"id": 1
}
u64

Minimum lamports required in the Account to remain rent free

Is this page helpful?