Solana RPC · Network & cluster

POST getMinimumBalanceForRentExemption

Lamports needed to make an account of N bytes rent-exempt.

Endpoint

POST  https://solrpc.infinityblocks.io/<API_KEY>

Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.

Parameters

ParamTypeRequiredDescription
dataLengthnumberyesAccount data size in bytes.
configobjectnocommitment.

Request

curl -s https://solrpc.infinityblocks.io/<API_KEY> \
  -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getMinimumBalanceForRentExemption","params":[165]}'

With @solana/web3.js

const rent = await rpc.getMinimumBalanceForRentExemption(165);

Response

{ "jsonrpc": "2.0", "id": 1, "result": 2039280 }

Try it

Run getMinimumBalanceForRentExemptionlive · POST

Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.