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?