peaq inherits the ERC-20 Native Token precompile to interact with the peaq token as is it were a native ERC-20. This prevents the need to have wrapped representations of the same token and allows for easy interaction with the token without the need to deploy another smart contract. This guide will show you how to interact with peaq’s testnet token, agung, through this precompile using Remix. The same can be done on peaq mainnet.
IERC-20.sol
.IERC-20.sol
file. The precompile is found at
the peaq node source code.IERC-20.sol
file by clicking on the Solidity Compiler tab and selecting the appropriate compiler version.0x0000000000000000000000000000000000000809
(found at the top of the copied file).The contract that you are able to interact with will show up on the bottom the the sidebar. Here lie all the functions that are present in the interface. For detailed information about the functions it provides please see the EIP-20 Token Standard.
peaq inherits the ERC-20 Native Token precompile to interact with the peaq token as is it were a native ERC-20. This prevents the need to have wrapped representations of the same token and allows for easy interaction with the token without the need to deploy another smart contract. This guide will show you how to interact with peaq’s testnet token, agung, through this precompile using Remix. The same can be done on peaq mainnet.
IERC-20.sol
.IERC-20.sol
file. The precompile is found at
the peaq node source code.IERC-20.sol
file by clicking on the Solidity Compiler tab and selecting the appropriate compiler version.0x0000000000000000000000000000000000000809
(found at the top of the copied file).The contract that you are able to interact with will show up on the bottom the the sidebar. Here lie all the functions that are present in the interface. For detailed information about the functions it provides please see the EIP-20 Token Standard.