Skip to content

Commit d2aecb3

Browse files
committed
Updating old documentation and misspelling.
1 parent 8455c01 commit d2aecb3

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

docs/blockexplorer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Block Explorer Documentation
44
The Blockchain block explorer provides programmatic access to the Bitcoin network internals. All block explorer functionality is available from the `Explorer` member object within a `Blockchain` object:
55

66
```php
7+
$Blockchain = new \Blockchain\Blockchain($api_code);
78
$val = $Blockchain->Explorer->someFunc($param);
89
```
910

docs/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Basic Usage
77
Make calls on the `Create` member object within the `Blockchain` object. Please note than an `api_code` is required with Create Wallet permissions. You may request an API code [here](https://blockchain.info/api/api_create_code).
88

99
```php
10-
$Blockchain = new Blockchain($api_code);
10+
$Blockchain = new \Blockchain\Blockchain($api_code);
1111
$Blockchain->Create->function(...)
1212
```
1313

docs/pushtx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Push->TX
1010
Broadcast a hex-encoded transaction to the Bitcoin network. Returns `true` on success, raises exception on failures such as malformed transactions.
1111

1212
```php
13-
$Blockchain = new Blockchain($api_code);
13+
$Blockchain = new \Blockchain\Blockchain($api_code);
1414

1515
$tx = "RawHexCodeHere";
1616

docs/rates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Exchange Rates Documentation
44
Official documentation on the [Blockchain Exchange Rates API page](https://blockchain.info/api/exchange_rates_api).
55

66
```php
7-
$Blockchain = new Blockchain($api_code);
7+
$Blockchain = new \Blockchain\Blockchain($api_code);
88

99
// Make calls on the $Blockchain->Rates object
1010
```

docs/receive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Usage
1010
Call `Receive->generate` on a `Blockchain` object. Pass an address and an optional callback URL. All Bitcoin received at the generated address will be forwarded to the input address. Returns a `ReceiveResponse` object.
1111

1212
```php
13-
$Blockchain = new Blockchain($api_code);
13+
$Blockchain = new \Blockchain\Blockchain($api_code);
1414

1515
$my_address = '1xYourBitcoinAddress';
1616
$callback_url = 'http://example.com/transaction?secret=mySecret';

docs/stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Get Stats
88
Get a snapshot of the network statistics. Returns a `StatsResponse` object.
99

1010
```php
11-
$Blockchain = new Blockchain($api_code);
11+
$Blockchain = new \Blockchain\Blockchain($api_code);
1212

1313
$stats = $Blockchain->Stats->get();
1414
```

docs/wallet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Wallet Documetation
1+
Wallet Documentation
22
===================
3-
Access a Blockchain wallet programmatically. Offical documentation [here](https://blockchain.info/api/blockchain_wallet_api).
3+
Access a Blockchain wallet programmatically. Official documentation [here](https://blockchain.info/api/blockchain_wallet_api).
44

55
Basic Usage
66
-----------
77
The `Blockchain` object contains a single member `Wallet` object. The wallet credentials must be set before any functionality may be used. Accessing multiple wallets is as simple as setting the credentials before making wallet calls.
88

99
```php
10-
$Blockchain = new Blockchain($api_code);
10+
$Blockchain = new \Blockchain\Blockchain($api_code);
1111
$Blockchain->Wallet->credentials('wallet-id-1', 'password-1', 'optional 2nd password');
1212

1313
// Operations on "wallet-id-1"
@@ -84,7 +84,7 @@ Send a multi-recipient transaction to many addresses at once. The `$recipients`
8484
$response = $Blockchain->Wallet->sendMany($recipients, $from_address=null, $fee=null, $public_note=null);
8585

8686
// Example: the following produces the same transaction as the previous example.
87-
$recipeints = array(
87+
$recipients = array(
8888
"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" => "0.005"
8989
);
9090
$response = $Blockchain->Wallet->sendMany($recipients, null, "0.0001", "Here you go, Satoshi!");

0 commit comments

Comments
 (0)