Deploying smart contract on BPX mainnet using Remix IDE

  1. Open the Remix IDE.


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.


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.


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


5. Go to the Deploy tab.


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