shitcoin_price 0.0.4 copy "shitcoin_price: ^0.0.4" to clipboard
shitcoin_price: ^0.0.4 copied to clipboard

Package to get the price of a token based on the liquidity pool.

Package Info #

This package uses the pool contract of each router and different cryptocurrency exchange platforms to take the price of any token even if it is not verified, it is free and without any kind of apikeys or registration required. 😎

Features #

Get the price in USD of any token on the Ethereum network and its subnets such as Binance Smart Chain, Polygon and others more.

Getting started #

Add the package to your pubspec.yaml file as shown below.


dependencies:

  shitcoin_price: any

Then import the package into your code like this.


import 'package:shitcoin_price/shitcoin_price.dart';

Usage #

You can call the function and give it the parameters it wants to query, for example:

final price = await ShitCoinPrice(rpc: key, router: key, token: key);

In this example we import the package function to get the price and we give it the values to perform the query.

  • rpc: The rpc url on the network that we want to query.
  • router: The address of the router, Uniswap, Pancakeswap, SushiSwap, or other.
  • token: The address of the contract of the token that we want to consult the price.

Additional information #

This package will be updated and added more features and utilities related to free price queries and market capitalization data, feel free to contribute!

Greetings. ⚡

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Package to get the price of a token based on the liquidity pool.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, web3dart

More

Packages that depend on shitcoin_price