You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ An official PHP library for interacting with the blockchain.info API.
7
7
Getting Started
8
8
---------------
9
9
10
-
Download the source or clone the repository. This php library works with the [Composer](https://getcomposer.org/) package manager. Navigate to the root of the repository and run
10
+
Download the source or clone the repository. This php library works with the [Composer](https://getcomposer.org/) package manager. Navigate to the root of the repository and run
11
11
12
12
```
13
13
$ composer install
14
14
```
15
15
16
-
This will create the `/vendor` folder in the repository root.
16
+
This will create the `/vendor` folder in the repository root.
17
17
18
18
In order to use Wallet and CreateWallet functionality, you must provide an URL to an instance of [service-my-wallet-v3](https://github.com/blockchain/service-my-wallet-v3).
19
19
Before using these functionalities, call \Blockchain\Blockchain::setServiceUrl to set the URL to the instance of of [service-my-wallet-v3](https://github.com/blockchain/service-my-wallet-v3).
@@ -30,9 +30,9 @@ $Blockchain = new \Blockchain\Blockchain();
All functionality is provided through the `Blockchain` object.
33
+
All functionality is provided through the `Blockchain` object.
34
34
35
-
###Call Limits
35
+
###Call Limits
36
36
37
37
The [official documentation](https://blockchain.info/api) lists API call limits, which may be bypassed with an API code. If you use a code, enter it when you create the `Blockchain` object:
38
38
@@ -42,7 +42,7 @@ $Blockchain = new \Blockchain\Blockchain('http://localhost:3000', $my_api_code);
42
42
43
43
If you need an API code, you may request one [here](https://blockchain.info/api/api_create_code).
44
44
45
-
###Network Timeouts
45
+
###Network Timeouts
46
46
47
47
Set the `cURL` timeout, in seconds, with the `setTimeout` member function:
48
48
@@ -58,25 +58,25 @@ A Note about Bitcoin Values
58
58
59
59
All Bitcoin values returned by the API are in string float format, in order to preserve full value precision. It is recommended that all arithmetic operations performed on Bitcoin values within PHP utilize the `bcmath` functions as follows:
Blocks may be queried in multiple ways: by the block hash, by the height in the blockchain, or by the block's index. Calls return `Block` objects. `getBlocksAtHeight` returns an array of `Block` objects.
The `WalletResponse` object contains fields for the wallet identifier (`guid`), the `address` for receiving Bitcoin, and a `label` for the first account of the wallet.
0 commit comments