Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

generateToAddress

🚧

New site!

All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.

Usage: await client.core.generateToAddress(blockMumber, address, options)
Description: Allow to broadcast a valid signed transaction to the network.
Notes: Will only works on regtest.

Parameters:

parameterstyperequiredDescription
blocksNumberNumberyesA number of block to see generated on the regtest network
addressStringyesThe address that will receive the newly generated Dash
optionsDAPIClientOptionsno

Returns : {Promise<string[]>} - a set of generated blockhashes.