Skip to content

Bitcoin Open Connection

Xenland edited this page Dec 5, 2012 · 19 revisions

Back to API Call Index

Purpose

This function will open a connection with the Bitcoin.

Parameter(s)

This function doesn’t take any parameters directly, however this function does require the developer/operator to set-up the Bitcoin RPC connection details in the settings variables located at the top of the library page.

Output | Array

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

return_status

  • Type: Integer

-1 = Failure to open connection with Bitcoin.

1 = Success (Connection was successfully made with Bitcoin RPC client.)


connection

  • Type: RPC Connection
  • Notes: Execute commands to this "variable" to interface with the Bitcoin Client directly, ONLY RECOMMENDED IF YOU KNOW HOW TO HANDLE THE ERRORS THIS LIBRARY FACILITATES FOR YOU!

Execute functions against this variable in the array just as if you were making RPC commands to Bitcoin client