Skip to content

Bitcoin Generate New Address

Xenland edited this page Dec 5, 2012 · 7 revisions

Back to API Call Index

Purpose

This function will open a connection with the Bitcoin client, then query it to generate a new address.

Parameter(s)

This function takes one parameter which is new_address_label and is optional.

Output | Array

This function outputs an array this array will output return_status and new_address.

return_status

  • Type: Integer

-1 = Failure to generate address

1 = Success (Address Generated)

100 = Failure to connect to Bitcoin client

101 = Address is too long or too short


new_address

  • Type: String

If return_status equals one (1) then this variable should contain a new valid Bitcoin address.