Skip to main content

Precompiled Contracts

Introduction

Similar to Ethereum, in addition to standard opcodes, the EVM offers more advanced functionalities in the form of precompiled smart contracts. These contracts are bundled with the EVM at fixed addresses and can be called like a standard contract.

Precompiled Contracts

AddressNameFeatures
0x0000000000000000000000000000000000000001ECRecoverECDSA public key recovery
0x0000000000000000000000000000000000000002SHA256SHA-2 256-bit hash function
0x0000000000000000000000000000000000000003RIPEMD160RIPEMD 160-bit hash function
0x0000000000000000000000000000000000000004IdentityIdentity function
0x0000000000000000000000000000000000000005ModExpBig integer modular exponentiation
0x0000000000000000000000000000000000000006BN128AddElliptic curve addition
0x0000000000000000000000000000000000000007BN128MulElliptic curve scalar multiplication
0x0000000000000000000000000000000000000008BN128PairElliptic curve pairing check
0x0000000000000000000000000000000000001000FRA (FRC20)Implement native token FRA to support IERC20 interface

FRC20-FRA precompile contract

We have an ERC20 interface compatible implemenation of FRA. We can interact with this address within ERC20 interface to control your evm FRA as if it's an FRC20 token.