-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.php
40 lines (27 loc) · 979 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Testing BlockBee Library...
*/
require __DIR__ . '/vendor/autoload.php';
$coin = "bep20_usdt";
$callback_url = "https://example.com";
$parameters = [
'payment_id' => 12345,
];
$cryptapi_params = [
'pending' => 1,
];
try {
$ca = new CryptAPI\CryptAPI($coin, '0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d', $callback_url, $parameters, $cryptapi_params);
# var_dump($ca->get_address()) . PHP_EOL;
# var_dump($ca->check_logs()) . PHP_EOL;
# var_dump($ca->get_qrcode()) . PHP_EOL;
# var_dump($ca->get_qrcode(2, 500)) . PHP_EOL;
# var_dump(\CryptAPI\CryptAPI::get_info('btc', true)) . PHP_EOL;
# var_dump(\CryptAPI\CryptAPI::get_info($coin, false)) . PHP_EOL;
# var_dump(\CryptAPI\CryptAPI::get_supported_coins()) . PHP_EOL;
# var_dump(\CryptAPI\CryptAPI::get_estimate($coin, 1, '')) . PHP_EOL;
# var_dump(\CryptAPI\CryptAPI::get_convert($coin, 3, 'usd')) . PHP_EOL;
} catch (Exception $e) {
var_dump($e);
}