solana_api_call: solana_api_call

View source: R/solana.R

solana_api_callR 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)

cryptotrackr documentation built on June 22, 2024, 10:39 a.m.