Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface XuperSDKInterface

Hierarchy

Implemented by

Index

Methods

checkAddress

  • checkAddress(address?: undefined | string): boolean

checkMnemonic

  • checkMnemonic(mnemonic: string, language: Language): boolean

checkStatus

  • checkStatus(): Promise<any>

create

createContractAccount

  • createContractAccount(contractAccountName: number, address: string): Promise<any>

deploySolidityContract

  • deploySolidityContract(contractAccount: string, contractName: string, bin: string, abi: string, lang: string, initArgs: any, upgrade: boolean, account?: AccountModel): Promise<any>

deployWasmContract

  • deployWasmContract(contractAccount: string, contractName: string, code: string, lang: string, initArgs: any, upgrade: boolean, account?: AccountModel): Promise<any>

export

  • export(password: string): string

getBalance

  • getBalance(address?: undefined | string): Promise<any>

getBalanceDetail

  • getBalanceDetail(address?: undefined | string): Promise<any>

getContractAccounts

  • getContractAccounts(address?: undefined | string): Promise<any>

getContracts

  • getContracts(target: string): Promise<any>

import

  • import(password: string, privateKeyStr: string, cache?: undefined | false | true): AccountModel

postTransaction

retrieve

transactionIdToHex

  • transactionIdToHex(t: Required<string>): string