Select the Network
In this guide, we'll cover how to select and work with different networks using the Eniblock SDK.
The Eniblock SDK provides support for the Polygon Network, ensuring compatibility with all EVM (Ethereum Virtual Machine) based blockchains. Additional network support is on the horizon, so stay tuned!
|Polygon Mumbai Testnet
Working with Testnet
The SDK is preconfigured to connect to the Polygon Mumbai Testnet by default.
All plans include Testnet support without any extra setup required in the Admin Console.
Instantiating the SDK and Checking the Network
Here's a quick start to verify the connected network:
Working with Mainnet
Set Mainnet as the Default Network
To start working with the Mainnet, configure the SDK as follows:
Switch Networks on the Fly
The network parameter is a global setting within the SDK, and any changes to it will impact all related accounts instantly.
To dynamically switch networks:
Free Plan Mainnet Access
The Free plan includes Testnet access, but using the Mainnet requires personal API configuration.
Configuring Your Alchemy API Key
Sign up or log in at the Alchemy website.
Find your Polygon Mainnet app and select
API Keyfrom the
Copy the API Key presented.
In the Admin Console, paste the API Key into your application settings.
Setting Up Your Alchemy Address Activity Webhook
On Alchemy, head to Data -> Webhooks.
Secure your webhook by copying the authentication token at the top of the page.
Back in the Admin Console, input the Alchemy Address Activity webhook details.
Congratulations, you're now prepared to engage with the Mainnet using your Free account!