solana_api_call {cryptotrackr}R Documentation

solana_api_call

Description

solana_api_call

Usage

solana_api_call(url, request_body, timeout_seconds = 60)

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.

Value

returns data from your Solana API call

Examples


url <- "https://api.devnet.solana.com"
request_body <-
  solana_assemble_request_body('"2.0"', 'null', '"getBlockHeight"', NULL)
data <- solana_api_call(url, request_body)

[Package cryptotrackr version 1.3.3 Index]