1

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?

  • It can be done very simply using Remix. Is there any specific issue that you are having in using Remix? – Ajoy Bhatia Oct 6 '18 at 1:00
  • I used remix to check the contract but i don't know how to connect private chain and deploy it into private chain. I tryed to use parity-ui but i don't solve my problem – phuong vuong nguyen Oct 6 '18 at 2:55
0

Can I use remix and metamask to deploy contract?

Yes. You need to do:

  1. open MetaMask
  2. select network Custom RPC
  3. fill private chain url (http://1.1.1.1:9545), press Enter
  4. import account with positive balance to MetaMask
  5. open/refresh Remix (Environment = 'Injected Web3', Account = )
  6. write/put contract
  7. compile contract with corresponding version of compiler
  8. deploy contract

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.