Skip to content

This sample dapp is used to benchmark the exchange rate canister on the Internet Computer.

License

Notifications You must be signed in to change notification settings

Dfinity-skaestle/xrc_benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exchange Rate Canister

This sample code illustrates how to interact with the exchange rate canister on the Internet Computer.

Installation

Note that dfx and npm need to be installed first.

Clone the repository, get the node dependencies, and build the canisters.

git clone [email protected]:THLO/xrc_demo.git
cd xrc_demo/
npm install
dfx build

Deployment

If you want to test the demo locally, you can use the following commands:

# Starts the replica, running in the background.
dfx start --background

# Deploys the canisters to the replica and generates the candid interface.
dfx deploy --with-cycles 10000000000000

Note that the --with-cycles parameter is required because cycles must be sent with every request to the exchange rate canister.

Open the link for the xrc_demo to get to the Candid interface.

About

This sample dapp is used to benchmark the exchange rate canister on the Internet Computer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.2%
  • Motoko 35.8%