Constructors
constructor
- new P2PKH(params: object): P2PKH
Methods
createAddress
- createAddress(options?: object): Promise<AssetAddress>
-
Parameters
-
Default value options: object = {}
-
Optional passphrase?: undefined | string
Returns Promise<AssetAddress>
createUnlockScript
- createUnlockScript(publicKeyHash: string, txhash: H256, options?: object): Promise<Buffer>
-
Parameters
-
publicKeyHash: string
-
txhash: H256
-
Default value options: object = {}
-
Optional passphrase?: undefined | string
-
Returns Promise<Buffer>
Static getLockScriptHash
- getLockScriptHash(): H160
AssetAgent which supports P2PKH(Pay to Public Key Hash).