-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed small bugs in some functions Updated some examples Added receiveWebhook example
- Loading branch information
Showing
7 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
use neto737\BitGoSDK\BitGoSDK; | ||
use neto737\BitGoSDK\Enum\CurrencyCode; | ||
|
||
$coin = CurrencyCode::BITCOIN_TESTNET; | ||
|
||
$bitgo = new BitGoSDK('YOUR_API_KEY_HERE', $coin, true); | ||
$bitgo->walletId = 'WALLET_ID_HERE'; | ||
|
||
$payload = $bitgo->getWebhookPayload(); | ||
|
||
$txDetails = $bitgo->getWalletTransaction($payload['hash']); | ||
|
||
if (!isset($txDetails['fromWallet'])) { | ||
//YOU ARE RECEIVING A TRANSACTION... | ||
} else { | ||
//YOU ARE SENDING A TRANSACTION... | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters