solana_get_block | R Documentation |
solana_get_block
solana_get_block(url, slot, timeout_seconds = 60)
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. |
Returns identity and transaction information about a confirmed block in the ledger.
url <- "https://api.devnet.solana.com"
slot <- solana_get_slot(url)
data <- solana_get_block(url, slot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.