@hashgraph/sdk
Preparing search index...
index
Wallet
Class Wallet
Implements
Index
Constructors
constructor
Properties
account
Id
provider
public
Key
signer
Methods
call
check
Transaction
get
Account
Balance
get
Account
Id
get
Account
Info
get
Account
Key
get
Account
Records
get
Ledger
Id
get
Mirror
Network
get
Network
get
Provider
populate
Transaction
sign
sign
Transaction
create
Random
ECDSA
create
Random
ED25519
Constructors
constructor
new
Wallet
(
accountId
:
string
|
AccountId
,
privateKey
:
string
|
PrivateKey
,
provider
:
undefined
|
Provider
,
)
:
Wallet
NOTE: When using string for private key, the string needs to contain DER headers
Parameters
accountId
:
string
|
AccountId
privateKey
:
string
|
PrivateKey
provider
:
undefined
|
Provider
Returns
Wallet
Properties
account
Id
accountId
:
AccountId
provider
provider
:
undefined
|
Provider
public
Key
publicKey
:
PublicKey
signer
signer
:
(
message
:
Uint8Array
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Methods
call
call
<
RequestT
,
ResponseT
,
OutputT
>
(
request
:
Executable
<
RequestT
,
ResponseT
,
OutputT
>
,
)
:
Promise
<
OutputT
>
Type Parameters
RequestT
ResponseT
OutputT
Parameters
request
:
Executable
<
RequestT
,
ResponseT
,
OutputT
>
Returns
Promise
<
OutputT
>
check
Transaction
checkTransaction
<
T
extends
Transaction
>
(
transaction
:
T
)
:
Promise
<
T
>
Type Parameters
T
extends
Transaction
Parameters
transaction
:
T
Returns
Promise
<
T
>
get
Account
Balance
getAccountBalance
()
:
Promise
<
AccountBalance
>
Returns
Promise
<
AccountBalance
>
Abstract
get
Account
Id
getAccountId
()
:
AccountId
Returns
AccountId
Abstract
get
Account
Info
getAccountInfo
()
:
Promise
<
AccountInfo
>
Returns
Promise
<
AccountInfo
>
get
Account
Key
getAccountKey
()
:
Key
Returns
Key
Abstract
get
Account
Records
getAccountRecords
()
:
Promise
<
TransactionRecord
[]
>
Returns
Promise
<
TransactionRecord
[]
>
get
Ledger
Id
getLedgerId
()
:
null
|
LedgerId
Returns
null
|
LedgerId
Abstract
get
Mirror
Network
getMirrorNetwork
()
:
string
[]
Returns
string
[]
Abstract
get
Network
getNetwork
()
:
{
[
key
:
string
]:
string
|
AccountId
}
Returns
{
[
key
:
string
]:
string
|
AccountId
}
get
Provider
getProvider
()
:
undefined
|
Provider
Returns
undefined
|
Provider
populate
Transaction
populateTransaction
<
T
extends
Transaction
>
(
transaction
:
T
)
:
Promise
<
T
>
Type Parameters
T
extends
Transaction
Parameters
transaction
:
T
Returns
Promise
<
T
>
sign
sign
(
messages
:
Uint8Array
<
ArrayBufferLike
>
[]
)
:
Promise
<
SignerSignature
[]
>
Parameters
messages
:
Uint8Array
<
ArrayBufferLike
>
[]
Returns
Promise
<
SignerSignature
[]
>
sign
Transaction
signTransaction
<
T
extends
Transaction
>
(
transaction
:
T
)
:
Promise
<
T
>
Type Parameters
T
extends
Transaction
Parameters
transaction
:
T
Returns
Promise
<
T
>
Static
create
Random
ECDSA
createRandomECDSA
()
:
Promise
<
Wallet
>
Returns
Promise
<
Wallet
>
Deprecated
Static
create
Random
ED25519
createRandomED25519
()
:
Promise
<
Wallet
>
Returns
Promise
<
Wallet
>
Deprecated
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
account
Id
provider
public
Key
signer
Methods
call
check
Transaction
get
Account
Balance
get
Account
Id
get
Account
Info
get
Account
Key
get
Account
Records
get
Ledger
Id
get
Mirror
Network
get
Network
get
Provider
populate
Transaction
sign
sign
Transaction
create
Random
ECDSA
create
Random
ED25519
@hashgraph/sdk
Loading...
Implements