Functions
createLockTransaction
- createLockTransaction(id: string, amount: number, hours: number, minutes: number): Transaction
-
Parameters
-
id: string
-
amount: number
-
hours: number
-
minutes: number
createSendTransaction
- createSendTransaction(from: string, to: string, amount: number, note: any, timeStamp?: undefined | number): Transaction
-
Parameters
-
from: string
-
to: string
-
amount: number
-
note: any
-
Optional timeStamp: undefined | number
createUnlockTransaction
- createUnlockTransaction(id: string, poolId: string): Transaction
-
Parameters
-
id: string
-
poolId: string
getBalance
- getBalance(network: Network, id: string): Promise<number>
-
Parameters
Returns Promise<number>
getLockStatus
- getLockStatus(network: Network, id: string): Promise<any>
-
Parameters
Returns Promise<any>
lock
-
Parameters
-
-
-
id: string
-
amount: number
-
hours: number
-
minutes: number
register
-
Parameters
-
-
id: string
-
pubKey: Buffer
send
-
Parameters
-
-
-
from: string
-
to: string
-
amount: number
-
note: any
-
Optional timeStamp: undefined | number
unlock
-
Parameters
-
-
-
id: string
-
poolId: string
Low-level client API