Web3.js usage example
The web3.js library can be used to interact with the EVM+. In this example, we are retrieving the developerStatus
of the EVM
contract.
This will validate wether the provided address has the developer status enabled or not. If you wish to learn more about the development accounts, you can read up about them.
In order to be able to use the web3.js library to interact with the predeployed smart contract, we need to add it as well as the precompiled smart contracts to the projects:
The following example imports the web3.js library and instantiates the connection to the RPC node of the network. It also utilizes the ADDRESS
utility of @acala-network/contracts
dependency and the precompiled EVM
smart contract. We instantiate, call it using the web3.js
library and output the result:
Last updated