-
-
Notifications
You must be signed in to change notification settings - Fork 0
LiskApi
The account's Lisk address
-
Type
interface LiskApi { address: string; }
The account's addres in hex format
-
Type
interface LiskApi { addressHex: string; }
The account's binary address in hex format
-
Type
interface LiskApi { addressHexBinary: Buffer; }
The coin's asset id
-
Type
interface LiskApi { assetId: 0; }
The coin's asset schema
-
Type
interface LiskApi { assetSchema: any; }
Name of the wallet coin, should be 'lisk'
-
Type
interface LiskApi { crypto: "lisk"; }
Number of the coin's decimals
-
Type
interface LiskApi { decimals: 8; }
The account's key pair
-
Type
interface LiskApi { keyPair: KeyPair; } interface KeyPair { publicKey: Buffer; secretKey: Buffer; }
The coin's module id
-
Type
interface LiskApi { moduleId: 2; }
The coin's multiplier
-
Type
interface LiskApi { multiplier: 100000000; }
Lisk API network information
-
Type
interface LiskApi { network: LiskNetwork; } interface LiskNetwork { name: string; port: number; unit: string; wsPort: number; }
The coin's network identifier
-
Type
interface LiskApi { networkIdentifier: Buffer; }
Creates a transfer transaction hex (signed JSON tx object) and ID Signed JSON tx object is ready for broadcasting to blockchain network
-
Type
interface LiskApi { createTransaction( address: string, amount: string, fee: number, nonce: number, data?: string ): Promise<SignedJsonTx>; }
-
Details
The address should be in Base32 format, amount and fee should be in coins instead of satoshis
-
References
Gets the account's info including balance
-
Type
interface LiskApi { getAccount(): Promise<LiskAccount>; }
-
References
Gets Lisk height
-
Type
interface LiskApi { getHeight(): Promise<number>; }
Gets transaction by the specified id
-
Type
interface LiskApi { getTransaction(transactionId: string): LiskTransaction; }
-
References
Gets list of transactions by specified filters
-
Type
interface LiskApi { getTransactions(options: any): LiskTransaction[]; }
-
References
Sends a signed transaction
-
Type
interface LiskApi { sendTransaction(signedTx: any): Promise<number>; }
-
Details
Returns transaction id