solana_api_call | R Documentation |
solana_api_call
solana_api_call(url, request_body, timeout_seconds = 60)
url |
the RPC url for your API call |
request_body |
the request body for your API call |
timeout_seconds |
seconds until the query times out. Default is 60. |
returns data from your Solana API call
url <- "https://api.devnet.solana.com"
request_body <-
solana_assemble_request_body('"2.0"', 'null', '"getBlockHeight"', NULL)
data <- solana_api_call(url, request_body)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.