Learn R Programming

cryptotrackr (version 1.3.3)

solana_get_block: solana_get_block

Description

solana_get_block

Usage

solana_get_block(url, slot, timeout_seconds = 60)

Value

Returns identity and transaction information about a confirmed block in the ledger.

Arguments

url

the RPC url for your API call

slot

slot number, as u64 integer

timeout_seconds

seconds until the query times out. Default is 60.

Examples

Run this code
# \donttest{
url <- "https://api.devnet.solana.com"
slot <- solana_get_slot(url)
data <- solana_get_block(url, slot)# }

Run the code above in your browser using DataLab