Search
Preparing search index...
The search index is not available
Easy SPL
Options
All
Public
Public/Protected
All
Inherited
Menu
Easy SPL
Wallet
Class Wallet
Hierarchy
Wallet
Implements
WalletI
Index
Constructors
constructor
Properties
conn
public
Key
signer
Methods
create
Associated
Token
Account
exists
Associated
Token
Account
get
Associated
Token
Account
get
Balance
get
Sol
Balance
sign
All
Transactions
sign
Transaction
transfer
Sol
transfer
Token
from
Keypair
from
Secret
Key
from
Wallet
Constructors
constructor
new
Wallet
(
conn
:
Connection
, signer
:
WalletI
)
:
Wallet
Parameters
conn:
Connection
signer:
WalletI
Returns
Wallet
Properties
conn
conn
:
Connection
public
Key
public
Key
:
PublicKey
signer
signer
:
WalletI
Methods
create
Associated
Token
Account
create
Associated
Token
Account
(
mintKey
:
PublicKey
)
:
Promise
<
PublicKey
>
Parameters
mintKey:
PublicKey
Returns
Promise
<
PublicKey
>
exists
Associated
Token
Account
exists
Associated
Token
Account
(
mintKey
:
PublicKey
)
:
Promise
<
boolean
>
Parameters
mintKey:
PublicKey
Returns
Promise
<
boolean
>
get
Associated
Token
Account
get
Associated
Token
Account
(
mintKey
:
PublicKey
)
:
Promise
<
PublicKey
>
Parameters
mintKey:
PublicKey
Returns
Promise
<
PublicKey
>
get
Balance
get
Balance
(
mintKey
:
PublicKey
)
:
Promise
<
number
>
Parameters
mintKey:
PublicKey
Returns
Promise
<
number
>
get
Sol
Balance
get
Sol
Balance
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
sign
All
Transactions
sign
All
Transactions
(
txs
:
Transaction
[]
)
:
Promise
<
Transaction
[]
>
Parameters
txs:
Transaction
[]
Returns
Promise
<
Transaction
[]
>
sign
Transaction
sign
Transaction
(
tx
:
Transaction
)
:
Promise
<
Transaction
>
Parameters
tx:
Transaction
Returns
Promise
<
Transaction
>
transfer
Sol
transfer
Sol
(
to
:
PublicKey
, amount
:
number
)
:
Promise
<
string
>
Parameters
to:
PublicKey
amount:
number
Returns
Promise
<
string
>
transfer
Token
transfer
Token
(
mintKey
:
PublicKey
, to
:
PublicKey
, amount
:
number
)
:
Promise
<
string
>
Parameters
mintKey:
PublicKey
to:
PublicKey
amount:
number
Returns
Promise
<
string
>
Static
from
Keypair
from
Keypair
(
conn
:
Connection
, keypair
:
Keypair
)
:
Wallet
Parameters
conn:
Connection
keypair:
Keypair
Returns
Wallet
Static
from
Secret
Key
from
Secret
Key
(
conn
:
Connection
, key
:
Uint8Array
)
:
Wallet
Parameters
conn:
Connection
key:
Uint8Array
Returns
Wallet
Static
from
Wallet
from
Wallet
(
conn
:
Connection
, signer
:
WalletI
)
:
Wallet
Parameters
conn:
Connection
signer:
WalletI
Returns
Wallet
Exports
account
associated
Token
Account
mint
sol
token
token
Account
util
Wallet
constructor
conn
public
Key
signer
create
Associated
Token
Account
exists
Associated
Token
Account
get
Associated
Token
Account
get
Balance
get
Sol
Balance
sign
All
Transactions
sign
Transaction
transfer
Sol
transfer
Token
from
Keypair
from
Secret
Key
from
Wallet
Generated using
TypeDoc