EVM 호환

Ethers.js 또는 Web3.js를 Wepin Provider와 함께 사용하면 EVM 계열의 블록체인과 상호작용 할 수 있습니다.

지원 네트워크

목록에 필요한 블록체인이 없나요? 위핀 팀에 요청하여 별도의 비용 없이 블록체인을 추가할 수 있습니다.

메인넷

Chain ID
Network Name
Network Variable

1

Ethereum Mainnet

ethereum

5

Ethereum Goerli Testnet

evmeth-goerli

11155111

Ethereum Sepolia

evmeth-sepolia

19

Songbird Canary Network

evmsongbird

137

Polygon Mainnet

evmpolygon

80002

Polygon Amoy

evmpolygon-amoy

8217

Klaytn Mainnet

klaytn

1001

Klaytn Testnet

klaytn-testnet

2731

Ant-Time Testnet

evmanttime-testnet

초기화(Initialize) web3.js

먼저 Wepin을 initialize 한 이후에 provider를 얻습니다.

`web3.js` 를 이용한 web3 초기화

`ethers.js`를 이용한 web3 초기화

참고 문서: ethers.js for React native

메서드(Method)

Get Accounts

초기화된 web3를 통해서 account 정보를 받아 올 수 있습니다.

Get Balance

account 정보를 이용해 balance를 조회할 수 있습니다.

아래 링크를 참고하여 Balance 뿐만 아니라 fee 정보, block number 등을 조회할 수 있습니다.

Send Transaction

transaction을 전송할 수 있습니다.

Contract Call

contract call을 수행할 수 있습니다.

이더리움 호환 네트워크 프로바이더의 자세한 내용은 아래 링크를 참고하세요.

Last updated

Was this helpful?