get_erc20_transfers: Get ERC20 Token Transfers

Description Usage Arguments Value Examples

View source: R/get_erc20_transfers.R

Description

Get ERC20 Token Transfers

Usage

1
get_erc20_transfers(address, token_contract, api_key, sleep = 1/10, ...)

Arguments

address

The wallet address.

token_contract

The ERC20 token contract address to retrieve transfers of.

api_key

The user's public API key. To generate it, you need an account at Covalent HQ.

sleep

Interval in seconds between requests.

...

Additional arguments to pass to the request. For more information on available parameters see Covalent HQ API.

Value

Returns a data.frame with the transfers of the specified ERC20 token for the specified address.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
address <- "0x669184d1fe949249857439232ee67d7adb25d0ae"
token_contract <- "0x0954906da0Bf32d5479e25f46056d22f08464cab"

get_erc20_transfers(address, token_contract, MY_API_KEY)
get_erc20_transfers(address, token_contract, MY_API_KEY,
                    "quote-currency" = "eth")

## End(Not run)

santiagogualchi/cvlnt documentation built on Jan. 22, 2021, 2:34 p.m.