Install via composer
composer require blockchainrndhub/ethereum-bundle
# app/AppKernel.php
$bundles = [
//...
new Blockchainrndhub\EthereumBundle\BlockchainrndhubEthereumBundle(),
//...
];
# app/config/config.yml
blockchainrndhub_ethereum:
etherscan_api_key: '%etherscan_api_key%'
# app/config/parameters.yml
parameters:
etherscan_api_key: YOUR_API_KEY
$etherscan = $this->container->get('ethereum_etherscan');