Browse Source

Fix API docs

master
Luke Childs 6 years ago
parent
commit
0d50df3fa9
  1. 16
      README.md

16
README.md

@ -44,19 +44,25 @@ buildOutputScript([{address: 'Lf8hucmupbtenQ3VPdxvvJ8gTfAsaon2gf', value: 100000
## API ## API
### buildOutputScript(Array<[address, value]>) ### buildOutputScript(outputs)
Returns a (hex string) P2PKH transaction output script. Returns a (hex string) P2PKH transaction output script.
#### address #### outputs
Type: `string` Type: `Array(output[, output])`
An array of one or more output objects.
##### output.address
Type: `String`
A valid P2PKH address. A valid P2PKH address.
#### value ##### output.value
Type: `number` Type: `Number`
Value to send to `address` in satoshis. Value to send to `address` in satoshis.

Loading…
Cancel
Save