Util

isSuccess

Check Subscan API response

Parameters

  • response SubscanResponse The subscan response.

Returns boolean true or false

getDecimal

Get the decimal based on the network

Parameters

  • network Network The network.

Returns number The decimal based on the network.

getDefaultFees

Get the default fees.

Parameters

  • network

Returns Fees The default fees based on the network.

getPrefix

Get address prefix based on the network.

Parameters

Returns string The address prefix based on the network.*