is_contract: Check whether an address is a contract address

Description Usage Arguments Details Value Warning

View source: R/is_contract.R

Description

Check whether an Ethereum address is a contract address or an external address.

Usage

1
is_contract(address, api_key)

Arguments

address

Character. A single ethereum address as a character string (40 hexadecimal characters prepended by '0x').

api_key

An Etherscan API key (see Details).

Details

is_contract uses the Etherscan API. Register for an API key at the Etherscan Developer APIs page.

Value

Logical. TRUE if the address is a contract address.

Warning

As per the Etherscan documentation, the Etherscan Ethereum Developer APIs are provided as a community service and without warranty, so please just use what you need and no more. They support both GET/POST requests and a rate limit of 5 requests/sec.


dapped/eth documentation built on Oct. 23, 2021, 4:42 a.m.