Search
Preparing search index...
The search index is not available
triaswallet
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"providers/tx-format/tx-format"
TxFormatProvider
Class TxFormatProvider
Hierarchy
TxFormatProvider
Index
Constructors
constructor
Properties
bitcore
Cash
bwc
Provider
config
Provider
filter
logger
pending
TxProposals
Count
For
Us
rate
Methods
format
Alternative
Str
format
Amount
format
Amount
Str
format
ToUSD
parse
Amount
process
Tx
sat
ToUnit
to
Cash
Address
to
Fiat
to
Legacy
Address
wei
ToUnit
Constructors
constructor
new
TxFormat
Provider
(
bwcProvider
:
BwcProvider
, rate
:
RateProvider
, configProvider
:
ConfigProvider
, filter
:
FilterProvider
, logger
:
Logger
)
:
TxFormatProvider
Parameters
bwcProvider:
BwcProvider
rate:
RateProvider
configProvider:
ConfigProvider
filter:
FilterProvider
logger:
Logger
Returns
TxFormatProvider
Properties
Private
bitcore
Cash
bitcore
Cash
:
any
Private
bwc
Provider
bwc
Provider
:
BwcProvider
Private
config
Provider
config
Provider
:
ConfigProvider
Private
filter
filter
:
FilterProvider
Private
logger
logger
:
Logger
pending
TxProposals
Count
For
Us
pending
TxProposals
Count
For
Us
:
number
Private
rate
rate
:
RateProvider
Methods
format
Alternative
Str
format
Alternative
Str
(
coin
:
string
, satoshis
:
number
)
:
string
Parameters
coin:
string
satoshis:
number
Returns
string
format
Amount
format
Amount
(
satoshis
:
number
, fullPrecision
?:
boolean
, coin
?:
string
)
:
any
Parameters
satoshis:
number
Optional
fullPrecision:
boolean
Optional
coin:
string
Returns
any
format
Amount
Str
format
Amount
Str
(
coin
:
string
, satoshis
:
number
)
:
string
Parameters
coin:
string
satoshis:
number
Returns
string
format
ToUSD
format
ToUSD
(
coin
:
string
, satoshis
:
number
)
:
Promise
<
any
>
Parameters
coin:
string
satoshis:
number
Returns
Promise
<
any
>
parse
Amount
parse
Amount
(
coin
:
string
, amount
:
any
, currency
:
string
, onlyIntegers
?:
boolean
)
:
object
Parameters
coin:
string
amount:
any
currency:
string
Optional
onlyIntegers:
boolean
Returns
object
alternative
Iso
Code
:
string
amount
:
any
amount
Sat
:
any
amount
Unit
Str
:
any
currency
:
string
process
Tx
process
Tx
(
coin
:
string
, tx
:
any
, useLegacyAddress
:
boolean
)
:
any
Parameters
coin:
string
tx:
any
useLegacyAddress:
boolean
Returns
any
sat
ToUnit
sat
ToUnit
(
amount
:
any
)
:
number
Parameters
amount:
any
Returns
number
to
Cash
Address
to
Cash
Address
(
address
:
string
, withPrefix
?:
boolean
)
:
string
Parameters
address:
string
Optional
withPrefix:
boolean
Returns
string
to
Fiat
to
Fiat
(
coin
:
string
, satoshis
:
number
, code
:
string
)
:
Promise
<
string
>
Parameters
coin:
string
satoshis:
number
code:
string
Returns
Promise
<
string
>
to
Legacy
Address
to
Legacy
Address
(
address
:
string
)
:
string
Parameters
address:
string
Returns
string
wei
ToUnit
wei
ToUnit
(
amount
:
any
)
:
number
Parameters
amount:
any
Returns
number
Globals
"providers/tx-
format/tx-
format"
Tx
Format
Provider
constructor
bitcore
Cash
bwc
Provider
config
Provider
filter
logger
pending
TxProposals
Count
For
Us
rate
format
Alternative
Str
format
Amount
format
Amount
Str
format
ToUSD
parse
Amount
process
Tx
sat
ToUnit
to
Cash
Address
to
Fiat
to
Legacy
Address
wei
ToUnit