Portis
1.設置Web3
npm install --save @portis/web3import Portis from '@portis/web3';
import Web3 from 'web3';const portis = new Portis('YOUR_DAPP_ID', 'maticTestnet');
const web3 = new Web3(portis.provider);2. 設置賬戶
3. 實例化合約
4. 調用函數
調用 send() 函數
Last updated