Skip to content

Web3 examples for interacting with the order interfaces of the exchange contract

Notifications You must be signed in to change notification settings

ContractLand/exchange-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exchange-Example

This is an example DApp to interact with the exchange contracts.

Install

npm install

To Perform Exchange Operations

  1. Make copy of .env.example file and rename to .env.

  2. Populate USER_ADDRESS and USER_ADDRESS_PRIVATE_KEY in .env. This is the account where the transactions will be made from. USER_ADDRESS_PRIVATE_KEY need to be provided without '0x' prefix.

  3. Use provided scripts for making transactions:

    • Buy CLC with ETH: node scripts/BuyCLCWithETH.js
    • Sell CLC for ETH: node scripts/SellCLCWithETH.js
    • Cancel Order: node scripts/CancelOrder.js. Need to modify orderId variable in script.

About

Web3 examples for interacting with the order interfaces of the exchange contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published