Skip to content

redstone-finance/redstone-near-dapp-example-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedStone example on NEAR (JS 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://www.npmjs.com/package/redstone-near-connector-js