View source: R/get_query_status.R
get_query_status | R Documentation |
Uses Flipside ShroomDK to access the status of a query run id from 'create_query_token()'
get_query_status(
query_run_id,
api_key,
api_url = "https://api-v2.flipsidecrypto.xyz/json-rpc"
)
query_run_id |
queryRunId from 'create_query_token()', for token stored as 'x', use 'x$result$queryRequest$queryRunId' |
api_key |
Flipside Crypto ShroomDK API Key |
api_url |
default to https://api-v2.flipsidecrypto.xyz/json-rpc but upgradeable for user. |
returns request content; for content 'x', use 'x$result$queryRun$state' and 'x$result$queryRun$errorMessage'. Expect one of QUERY_STATE_READY, QUERY_STATE_RUNNING, QUERY_STATE_STREAMING_RESULTS, QUERY_STATE_SUCCESS, QUERY_STATE_FAILED, QUERY_STATE_CANCELED
## Not run:
query = create_query_token("SELECT * FROM ETHEREUM.CORE.FACT_TRANSACTIONS LIMIT 10000", api_key)
get_query_status(query$result$queryRequest$queryRunId, api_key)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.