New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rdoc-price-testing-purpose

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdoc-price-testing-purpose

* Make sure to include in the .env file the NODE_URL and CONTRACT_ADDRESS (as specified in the .env.placeholders example) with the corresponding RSK node url and the price feeder contract address. When using the library as standalone, the .env file m

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

USAGE

  • Make sure to include in the .env file the NODE_URL and CONTRACT_ADDRESS (as specified in the .env.placeholders example) with the corresponding RSK node url and the price feeder contract address.

When using the library as standalone, the .env file must be at this directory's root. If it's being imported from another project, use the .env file of the project.

  • Import the tool as import getRDOCPrice from '@rsksmart/rdoc-price-getter'

The async function getRDOCPrice() will return a string containing the price of the token.
Note that it should be split into the integer and the decimal part. The last 18 digits are the decimals. The remaining at the left is the integer part.

FAQs

Package last updated on 28 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc