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
XuperSDKInterface
Interface XuperSDKInterface
Hierarchy
AccountInterface
TransactionInterface
ContractInterface
XuperSDKInterface
Implemented by
XuperSDK
Index
Methods
check
Address
check
Mnemonic
check
Status
create
create
Contract
Account
deploy
Solidity
Contract
deploy
Wasm
Contract
export
get
Balance
get
Balance
Detail
get
Contract
Accounts
get
Contracts
import
post
Transaction
retrieve
transaction
IdTo
Hex
Methods
check
Address
check
Address
(
address
?:
undefined
|
string
)
:
boolean
Parameters
Optional
address:
undefined
|
string
Returns
boolean
check
Mnemonic
check
Mnemonic
(
mnemonic
:
string
, language
:
Language
)
:
boolean
Parameters
mnemonic:
string
language:
Language
Returns
boolean
check
Status
check
Status
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
create
create
(
language
:
Language
, strength
:
Strength
, cryptography
:
Cryptography
)
:
AccountModel
Parameters
language:
Language
strength:
Strength
cryptography:
Cryptography
Returns
AccountModel
create
Contract
Account
create
Contract
Account
(
contractAccountName
:
number
, address
:
string
)
:
Promise
<
any
>
Parameters
contractAccountName:
number
address:
string
Returns
Promise
<
any
>
deploy
Solidity
Contract
deploy
Solidity
Contract
(
contractAccount
:
string
, contractName
:
string
, bin
:
string
, abi
:
string
, lang
:
string
, initArgs
:
any
, upgrade
:
boolean
, account
?:
AccountModel
)
:
Promise
<
any
>
Parameters
contractAccount:
string
contractName:
string
bin:
string
abi:
string
lang:
string
initArgs:
any
upgrade:
boolean
Optional
account:
AccountModel
Returns
Promise
<
any
>
deploy
Wasm
Contract
deploy
Wasm
Contract
(
contractAccount
:
string
, contractName
:
string
, code
:
string
, lang
:
string
, initArgs
:
any
, upgrade
:
boolean
, account
?:
AccountModel
)
:
Promise
<
any
>
Parameters
contractAccount:
string
contractName:
string
code:
string
lang:
string
initArgs:
any
upgrade:
boolean
Optional
account:
AccountModel
Returns
Promise
<
any
>
export
export
(
password
:
string
)
:
string
Parameters
password:
string
Returns
string
get
Balance
get
Balance
(
address
?:
undefined
|
string
)
:
Promise
<
any
>
Parameters
Optional
address:
undefined
|
string
Returns
Promise
<
any
>
get
Balance
Detail
get
Balance
Detail
(
address
?:
undefined
|
string
)
:
Promise
<
any
>
Parameters
Optional
address:
undefined
|
string
Returns
Promise
<
any
>
get
Contract
Accounts
get
Contract
Accounts
(
address
?:
undefined
|
string
)
:
Promise
<
any
>
Parameters
Optional
address:
undefined
|
string
Returns
Promise
<
any
>
get
Contracts
get
Contracts
(
target
:
string
)
:
Promise
<
any
>
Parameters
target:
string
Returns
Promise
<
any
>
import
import
(
password
:
string
, privateKeyStr
:
string
, cache
?:
undefined
|
false
|
true
)
:
AccountModel
Parameters
password:
string
privateKeyStr:
string
Optional
cache:
undefined
|
false
|
true
Returns
AccountModel
post
Transaction
post
Transaction
(
tx
:
TransactionModel
)
:
Promise
<
any
>
Parameters
tx:
TransactionModel
Returns
Promise
<
any
>
retrieve
retrieve
(
mnemonic
:
string
, language
:
Language
, cryptography
:
Cryptography
, cache
?:
undefined
|
false
|
true
)
:
AccountModel
Parameters
mnemonic:
string
language:
Language
cryptography:
Cryptography
Optional
cache:
undefined
|
false
|
true
Returns
AccountModel
transaction
IdTo
Hex
transaction
IdTo
Hex
(
t
:
Required
<
string
>
)
:
string
Parameters
t:
Required
<
string
>
Returns
string
Globals
XuperSDKInterface
check
Address
check
Mnemonic
check
Status
create
create
Contract
Account
deploy
Solidity
Contract
deploy
Wasm
Contract
export
get
Balance
get
Balance
Detail
get
Contract
Accounts
get
Contracts
import
post
Transaction
retrieve
transaction
IdTo
Hex