Search
Preparing search index...
The search index is not available
Xuper SDK (JS/TS)
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Account
Class Account
Hierarchy
Account
Index
Properties
last4
Bits
Mask
password
Methods
add
Checksum
check
Address
check
Mnemonic
create
decrypt
Private
Key
encrypt
Private
Key
export
generate
Address
generate
Entropy
generate
Key
BySeed
generate
Mnemonic
generate
Seed
get
Balance
get
Balance
Detail
get
Word
List
ByLanguage
import
retrieve
Properties
Private
last4
Bits
Mask
last4
Bits
Mask
:
BN
= new BN(15)
Private
password
password
:
string
= "jingbo is handsome!"
Methods
Private
add
Checksum
add
Checksum
(
data
:
any
)
:
BN
Parameters
data:
any
Returns
BN
check
Address
check
Address
(
address
:
string
)
:
boolean
Parameters
address:
string
Returns
boolean
check
Mnemonic
check
Mnemonic
(
mnemonic
:
string
, language
:
Language
)
:
boolean
Parameters
mnemonic:
string
language:
Language
Returns
boolean
create
create
(
language
:
Language
, strength
:
Strength
, cryptography
:
Cryptography
)
:
AccountModel
Parameters
language:
Language
strength:
Strength
cryptography:
Cryptography
Returns
AccountModel
Private
decrypt
Private
Key
decrypt
Private
Key
(
password
:
string
, keyStr
:
string
)
:
string
Parameters
password:
string
keyStr:
string
Returns
string
Private
encrypt
Private
Key
encrypt
Private
Key
(
password
:
string
, privateKey
:
PrivateKey
)
:
string
Parameters
password:
string
privateKey:
PrivateKey
Returns
string
export
export
(
password
:
string
, privateKey
:
PrivateKey
)
:
string
Parameters
password:
string
privateKey:
PrivateKey
Returns
string
Private
generate
Address
generate
Address
(
publicKey
:
PublicKey
, cryptography
:
Cryptography
)
:
string
Parameters
publicKey:
PublicKey
cryptography:
Cryptography
Returns
string
Private
generate
Entropy
generate
Entropy
(
strength
:
Strength
)
:
Uint8Array
Parameters
strength:
Strength
Returns
Uint8Array
Private
generate
Key
BySeed
generate
Key
BySeed
(
curve
:
EC
, seed
:
any
)
:
PrivateKey
Parameters
curve:
EC
seed:
any
Returns
PrivateKey
Private
generate
Mnemonic
generate
Mnemonic
(
entropy
:
ArrayBuffer
, language
:
Language
)
:
string
Parameters
entropy:
ArrayBuffer
language:
Language
Returns
string
Private
generate
Seed
generate
Seed
(
mnemonic
:
string
, password
:
string
, keyLen
:
number
, language
:
Language
)
:
any
Parameters
mnemonic:
string
password:
string
keyLen:
number
language:
Language
Returns
any
get
Balance
get
Balance
(
address
:
string
, node
:
string
, chain
:
string
)
:
Promise
<
any
>
Parameters
address:
string
node:
string
chain:
string
Returns
Promise
<
any
>
get
Balance
Detail
get
Balance
Detail
(
address
:
string
, node
:
string
, chain
:
string
)
:
Promise
<
any
>
Parameters
address:
string
node:
string
chain:
string
Returns
Promise
<
any
>
Private
get
Word
List
ByLanguage
get
Word
List
ByLanguage
(
language
:
Language
)
:
Array
<
string
>
Parameters
language:
Language
Returns
Array
<
string
>
import
import
(
password
:
string
, privateKeyStr
:
string
)
:
AccountModel
Parameters
password:
string
privateKeyStr:
string
Returns
AccountModel
retrieve
retrieve
(
mnemonic
:
string
, language
?:
Language
, cryptography
?:
Cryptography
)
:
AccountModel
Parameters
mnemonic:
string
Default value
language:
Language
= Language.SimplifiedChinese
Default value
cryptography:
Cryptography
= Cryptography.EccFIPS
Returns
AccountModel
Globals
Account
last4
Bits
Mask
password
add
Checksum
check
Address
check
Mnemonic
create
decrypt
Private
Key
encrypt
Private
Key
export
generate
Address
generate
Entropy
generate
Key
BySeed
generate
Mnemonic
generate
Seed
get
Balance
get
Balance
Detail
get
Word
List
ByLanguage
import
retrieve