Skip to content

redstone-finance/redstone-near-dapp-example-rust

Repository files navigation

RedStone example on NEAR (RUST contract)

RedStone example on NEAR is a decentralized app that securely fetches prices of several assets.

What This Example Shows

  1. How to integrate smart contracts with RedStone oracles
  2. How to prepare frontend for redstone-powered smart contracts

Quickstart

Clone this repository locally. Then follow these steps:

1. Install Dependencies

npm install

2. Test the Contract

Deploy your contract in a sandbox and simulate interactions from users.

npm test

3. Deploy the Contract

Build the contract and deploy it in a testnet account

npm run deploy

4. Start the Frontend

Start the web application to interact with your smart contract

npm start

Learn More

To learn more about integration with RedStone visit https://crates.io/crates/redstone-near-connector-rs