isBlockhashValid RPC Metodu

Bir blockhash'in hala geçerli olup olmadığını döndürür

Sürüm Kısıtlaması

Bu metot sadece solana-core v1.9 veya daha yeni sürümlerde kullanılabilir. Lütfen solana-core v1.8 ve altı sürümler için getFeeCalculatorForBlockhash kullanın.

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

params

stringrequired

Değerlendirilecek bloğun base-58 kodlanmış string olarak blockhash'i

objectoptional

Aşağıdaki alanları içeren yapılandırma nesnesi:

result

Response
{
"jsonrpc": "2.0",
"result": {
"context": { "slot": 2483 },
"value": false
},
"id": 45
}
bool

Blok hash'inin hala geçerli olup olmadığı

Is this page helpful?