Development

Deploying smart contract on BPX mainnet using Remix IDE

  1. Open the Remix IDE.

remix1.png

2. In our example, we will use one of the test smart contracts that is already uploaded into the IDE. Open contracts/1_Storage.sol file.

remix2.png

On the right you can see the contract source code. This contract provides two functions. The first (store) allows you to save any number in the contract, and the second (retrieve) allows you to read it.

3. Compile the contract by right-clicking on the file name, then select Compile.

remix3.png

4. When the source code does not contain any errors and compilation is successful, you will see a green success icon.

remix4.png

5. Go to the Deploy tab.

remix5.png

6. Expand the Environment list and select Injected Provider - MetaMask.