I'm using atomic swap to exchange money in 2 private blockchain. I used json-rpc to create 2 private chain and created HTLC (Hash time lock contract) to exchange. But I don't know how to deploy contract in private chain. Please help me how to deploy contract in private chain. Can I use remix and metamask to deploy contract?
Can I use remix and metamask to deploy contract?
Yes. You need to do:
- open MetaMask
- select network
- fill private chain url (http://220.127.116.11:9545), press Enter
- import account with positive balance to MetaMask
- open/refresh Remix (Environment = 'Injected Web3', Account = )
- write/put contract
- compile contract with corresponding version of compiler
- deploy contract