Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 797 Bytes

File metadata and controls

25 lines (19 loc) · 797 Bytes

About

The EXM contract below is an example implementation of a contract that uses Redstone oracle to fetch token price using redstone molecule.

Contract

Prerequisites

  • EXM SDK
npm i -g @execution-machine/sdk

Iteracting with the contract

To fetch a token price, call the getPrice function with a token's ticker.

exm function:write pxg9fX9yOo7jJeOAM8LpfmB0Tf10UD_3hLdgvNE4Jj0
 --input '{"function": "getPrice", "token_ticker": "ar"}' --token EXM_TOKEN_ID