This page details the utility functions for token balances, gas calculations, and transaction fees in Skip Go.
balances
function or via the REST API. You have the option to specify a set of token denoms to query or leave the array empty to fetch balances for all denoms associated with an address.
getRecommendedGasPrice
GasPrice
is a cosmjs type giving the recommended fee denom and recommend price amount (fee/gas):
getFeeInfoForChain
chainId
, along with the default fee denom as a FeeAsset
object:
ExecuteRouteOptions
for customizing how gas & fees are set on transactionsExecuteRouteOptions.getGasPrice
ExecuteRouteOptions
allows you to override our default gas price on a per chain basis for any transactions created in the router (e.g. in executeRoute
):
getGasPrice?: (chainId: string) => Promise<GasPrice | undefined>;
The argument is a function that takes in a chain ID and returns a gas price for that chain as a GasPrice
object from CosmJS
ExecuteRouteOptions.gasAmountMultiplier
ExecuteRouteOptions
allows you to override the default gas multiplier used by default in the SDK. The default value is 1.5. Increasing this value provides higher confidence that transactions will not run out of gas while executing, but increases the fee for the end user.
The gas multiplier increases a transaction’s gasAmount
multiplicatively. To get a final gas amount, the router:
gasAmountMultiplier