Price

Get transaction fees and token exchange rate for various supported blockchains.

Supported

Bitcoin

Cosmos

Ethereum

Polygon

Ripple

Solana

Stellar

Ripple

Fee

import core from '@poro-wallet/core';

const node = 'https://s.altnet.rippletest.net:51234';

const fee = await core.price.ripple.fee(node);
// => 0.00001

Token Exchange Rate

Get the exchange ratio of native token to non-native token, e.g. how many tokens you get by selling 1 ether

import core from '@poro-wallet/core';

const currency = 'USD';
const contractAddress = 'rBZJzEisyXt2gvRWXLxHftFRkd1vJEpBQP';
const node = 'https://s.altnet.rippletest.net:51234';

const tokenPrice = await core.price.ripple.token(
      node,
      currency,
      contractAddress,
);
// => 0.35288

Last updated