getMinimumBalanceForRentExemption RPCメソッド

アカウントをrent免除にするために必要な最小残高を返します。

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

params

usizerequired

アカウントのデータ長

objectoptional

以下のフィールドを含む設定オブジェクト:

result

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

アカウントがrent免除を維持するために必要な最小lamport数

Is this page helpful?