Deploying verifiable digital ownership on GCP
We’re at the final stage of our solution. Deploying a verifiable digital ownership solution on GCP involves several steps. This comprehensive guide outlines how to set up the required components, deploy the smart contract, and run the frontend application.
As we have already deployed the cloud infrastructure in a previous step, we now focus on the deployment of the smart contract:
- Compile the Solidity smart contract, if not already done, with the
solc
command:solc --bin --abi -o ./output/path/DigitalOwnership.sol
- Deploy the compiled contract using web3.js in a Node.js script (let’s call it
deploy.js
) to deploy the compiled contract. Make sure that the RPC port of the VM with the Ethereum node is accessible, or use an SSH tunnel to route the request:const Web3 = require('web3');
const web3 = new Web3(new Web3.providers.HttpProvider("https://ethereum-node-address"));
const abi = [...]; ...