Search
Preparing search index...
The search index is not available
catn8-pay
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
catn8-pay
Wallet
Class Wallet
Hierarchy
Wallet
Index
Constructors
constructor
Properties
_envelopes
_indexclient
_keypair
_proofs
Accessors
Address
Balance
Envelopes
Public
Key
Unspents
Methods
decode
get
Proofs
sleep
spend
utxofetch
Constructors
constructor
new
Wallet
(
wif
:
string
)
:
Wallet
Parameters
wif:
string
Returns
Wallet
Properties
Protected
_envelopes
_envelopes
:
Envelopes
= ...
Protected
_indexclient
_indexclient
:
IndexClient
Protected
_keypair
_keypair
:
KeyPair
Protected
_proofs
_proofs
:
{}
Type declaration
[
key:
string
]:
any
Accessors
Address
get
Address
(
)
:
any
Returns
any
Balance
get
Balance
(
)
:
number
Returns
number
Envelopes
get
Envelopes
(
)
:
Envelopes
Returns
Envelopes
Public
Key
get
PublicKey
(
)
:
string
Returns
string
Unspents
get
Unspents
(
)
:
any
[]
set
Unspents
(
val
:
any
[]
)
:
void
Returns
any
[]
Parameters
val:
any
[]
Returns
void
Methods
decode
decode
(
rawtx
:
string
)
:
any
Parameters
rawtx:
string
Returns
any
get
Proofs
get
Proofs
(
txid
:
string
)
:
Promise
<
void
>
Parameters
txid:
string
Returns
Promise
<
void
>
sleep
sleep
(
delay
?:
number
)
:
Promise
<
void
>
Parameters
delay:
number
= 350
Returns
Promise
<
void
>
spend
spend
(
to
:
string
, amount
:
number
, utxo
?:
any
)
:
{
rawhex
:
any
;
txid
:
any
}
Parameters
to:
string
amount:
number
Optional
utxo:
any
Returns
{
rawhex
:
any
;
txid
:
any
}
rawhex
:
any
txid
:
any
utxofetch
utxofetch
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
Exports
Index
Client
Key
Pair
Wallet
constructor
_envelopes
_indexclient
_keypair
_proofs
Address
Balance
Envelopes
Public
Key
Unspents
decode
get
Proofs
sleep
spend
utxofetch
Generated using
TypeDoc