Description Usage Arguments Details Value Warning
Check whether an Ethereum address is a contract address or an external address.
1 | is_contract(address, api_key)
|
address |
Character. A single ethereum address as a character string (40 hexadecimal characters prepended by '0x'). |
api_key |
An Etherscan API key (see Details). |
is_contract
uses the Etherscan API. Register for an API key
at the Etherscan Developer APIs page.
Logical. TRUE
if the address is a contract address.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.