Articles in this section

Deploying your DApp to POA Network

POA Network is an extremely fast, low-cost network that is 100% compatible with Ethereum. This means you create as you normally would for Ethereum, but when you deploy to POA Network you get the benefit of a fast sidechain and gas pricing suitable for micro-transactions and gameplay.

Best of all, deploying to POA Network is easy!

The following tutorials use:

Google Chrome. Versions 59.0.3071.115+ are supported. Pop-ups should be enabled.

Nifty Wallet v 4.8.5 or

Metamask v 4.11.1

Note:You will need POA or SPOA (for the Sokol testnet) to proceed. Instructions are included below.

Create a contract and paste the contract code into Remix.a. Press the + buttonb. Name your contractc. Paste in from your editor (or create in the IDE)

Check compile functionality - either set to autocompile or compile manually.

Make sure your Nifty Wallet is active and set to the correct Network (POA or Sokol). To change to the testnet, click on the Nifty wallet icon in the top right of your Chrome browser and select POA Sokol Test Network from the dropdown list.

In Remix, go to the Run tab and select Injected Web3 as the environment. The Account and Gas limit should auto-populate.

If your contract has compiled, you will see it in the dropdown menu (in this example it is called Count). Click Deploy.

You will see a Nifty Wallet confirmation pop-up to create a new contract. Click Submit.

View the details of the contract creation in the Remix transactions box.

Click on the entry to expand the details. Copy the transaction hash.

Paste the transaction hash into the POA Sokol explorer (if you are testing on Sokol - if you are on the POA main net go to https://poaexplorer.com) and click Search to view the details.

In Remix, you can test your contract functions on the network in the Deployed Contracts section.

Deploying to POA Network using Remix with MetaMask Wallet:

Note: MetaMask and Nifty wallet can compete with one another when visiting a web3 site. The browser will recognize Nifty wallet first. If you have both installed but want to use MetaMask to interact, disable Nifty Wallet by clicking on the 3 dots in the top right corner of Chrome, going to Settings -> More Tools -> Extensions, and disabling the Nifty Wallet extension.

Create a contract and paste the contract code into Remix.a. Press the + buttonb. Name your contractc. Paste in from your editor (or create in the IDE)

Check compile functionality - either set to autocompile or compile manually.

Make sure MetaMask is active and set to the correct Network (POA or Sokol). To change networks, click on the MetaMask wallet icon in the top right of your Chrome browsera. Sokol:https://sokol.poa.networkb. POA:https://poa.infura.io

c. Click on Networks dropdown.

d. Select Custom RPC from the dropdown list.

e. In the URL, enter the Sokol Testnet or POA RPC and click Save.

f. You will now see Private Network in the Network dropdown, and your balance will display.

Note: POA and SPOA coins with display ETH as the denomination, but these are POA/SPOA coins.

In Remix, go to the Run tab and select Injected Web3 as the environment. The account and gas limit should auto-populate. Change limit and value if necessary.

If your contract has compiled, you will see it in the dropdown menu (in this example it is called Count). Click Deploy.

Will see a MetaMask confirmation pop-up to create a new contract. Click Confirm. Depending on your settings, Confirmation requests may also appear in the Metamask icon. Click the icon to review.

View the details of the contract creation in the Remix transactions box.

Click on the entry to expand the details. Copy the transaction hash.

Paste the transaction hash into the POA Sokol explorer (assuming you are testing on Sokol - if you are on the POA main net go to https://poaexplorer.com) and click Search to view the details

In Remix, you can test your contract functions on the network in the Deployed Contracts section.

Deploying to POA Network using Truffle Framework:

Greg from DApp University has created a video guide on how to deploy to POA Network using the Truffle Framework. Check it out below.