$master_public_key
$master_public_key
Electrum Bitcoin Wallet to accept payments in Cairn
status_invoice(object $order, array $request) : array
Updates the status of a post_set and returns an assocative array of the status of the posts set.
| object | $order | The posts_set object. |
| array | $request | Request variables posted from the order form. |
process_invoice(array $request) : array
Processes a post_set with the status of a cart and changes it to a status of hold and saves information from $request to the database.
| array | $request | Request variables posted from the order form. |
curl(string $url, boolean $return_content_on_error, integer $timeout, string $user_agent) : string
Retreives data from a remote server.
| string | $url | The url to request. |
| boolean | $return_content_on_error | If to return content on error. |
| integer | $timeout | The total seconds until the request will timeout. |
| string | $user_agent | The user agent to identify. |
The data requested from the URL.
received_info(string $btc_address, integer $required_confirmations, integer $api_timeout) : string
Discovers the received information for a particular bitcoin address.
| string | $btc_address | The bitcoin address in question. |
| integer | $required_confirmations | The total number of confirmations to check. |
| integer | $api_timeout | The total seconds until the request will timeout. |
The status of the bitcoin address.
payment_address( $request) : string
Gets a bitcoin address that can be used for payment.
| $request |
The newly minted bitcoin address.
add_address() : string
Adds a new bitcoin address to the database.
The newly minted bitcoin address.
address(string $master_public_key, integer $key_index) : string
Generates a new bitcoin address based upon a master public key from Electrum.
| string | $master_public_key | The master public key from Electrum. |
| integer | $key_index | The index used for the key to syncronize with the offline wallet. |
The newly minted bitcoin address.