Description Usage Arguments Details Value Examples
View source: R/get_token_holders.R
Get Token Holders As Of A Block Height
1 2 3 4 5 6 7 | get_token_holders(
token_contract,
api_key,
block_height = "latest",
sleep = 1/10,
...
)
|
token_contract |
The token contract address. |
api_key |
The user's public API key. To generate it, you need an account at Covalent HQ. |
block_height |
The block height. If set to |
sleep |
Interval in seconds between requests. |
... |
Additional arguments to pass to the request. For more information on available parameters see Covalent HQ API. |
This endpoint does a deep-crawl of the blockchain to retrieve all kinds of transactions that references the address.
Returns a data.frame with the balance for the specified token contract of all holders.
1 2 3 4 5 6 7 | ## Not run:
token_contract <- "0x0954906da0Bf32d5479e25f46056d22f08464cab"
get_token_holders(token_contract, MY_API_KEY)
get_token_holders(token_contract, MY_API_KEY, block_height = "11601973")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.