Getting Started with MetaMask

To develop for MetaMask, install MetaMask in the browser of your choice on your development machine. Download here.

Connect to Pangoro Testnet

Get ORINGs for Testing

Send a request to the DarwiniaDao admins in the technical-discussion channel on Discord.

Web3 Browser Detection

To verify if the browser is running MetaMask, use the code snippet below:
if (typeof window.ethereum !== 'undefined') { console.log('MetaMask is installed!'); }
You can review the full MetaMask API for the window.ethereum object here.

Use Your Account from MetaMask

<h2>Account: <span class="showAccount"></span></h2>
const showAccount = document.querySelector('.showAccount'); async function getAccount() { const accounts = await ethereum.request({ method: 'eth_requestAccounts' }); const account = accounts[0]; showAccount.innerHTML = account; }

Choosing a Library

You can choose one of the libraries to interact with the node using Ethereum JSON-RPC:
If you want to use the low-level APIs provided by Substrate, you will also need to include this library: