Learn R Programming

cryptotrackr (version 1.3.3)

solana_api_call: solana_api_call

Description

solana_api_call

Usage

solana_api_call(url, request_body, timeout_seconds = 60)

Value

returns data from your Solana API call

Arguments

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.

Examples

Run this code
# \donttest{
url <- "https://api.devnet.solana.com"
request_body <-
  solana_assemble_request_body('"2.0"', 'null', '"getBlockHeight"', NULL)
data <- solana_api_call(url, request_body)# }

Run the code above in your browser using DataLab