Methods
broadcastTx
- broadcastTx(txHex): Promise<string>
Returns Promise<string>
getAddress
- getAddress(walletIndex?): string
Parameters
Optional
walletIndex: number
Returns string
getAddressAsync
- getAddressAsync(walletIndex?): Promise<string>
Parameters
Optional
walletIndex: number
Returns Promise<string>
getBalance
- getBalance(address, assets?): Promise<Balance[]>
Parameters
- address: string
Optional
assets: Asset[]
Returns Promise<Balance[]>
getExplorerAddressUrl
- getExplorerAddressUrl(address): string
Returns string
getExplorerTxUrl
- getExplorerTxUrl(txID): string
Returns string
getExplorerUrl
- getExplorerUrl(): string
Returns string
getFees
- getFees(options?): Promise<Fees>
Returns Promise<Fees>
getTransactionData
- getTransactionData(txId, assetAddress?): Promise<Tx>
Parameters
- txId: string
Optional
assetAddress: string
Returns Promise<Tx>
purgeClient
- purgeClient(): void
Returns void
setNetwork
- setNetwork(net): void
Returns void
setPhrase
- setPhrase(phrase, walletIndex): string
Parameters
- phrase: string
- walletIndex: number
Returns string
transfer
- transfer(params): Promise<string>
Returns Promise<string>
validateAddress
- validateAddress(address): boolean
Returns boolean
Interface for an XChain client.