Skip to content

Commit 4263ba5

Browse files
committed
Modify host to mainnet
1 parent 6e39e8e commit 4263ba5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ composer require fenguoz/tron-php
3333
``` php
3434
use GuzzleHttp\Client;
3535

36-
$uri = 'https://api.shasta.trongrid.io';// shasta testnet
36+
$uri = 'https://api.trongrid.io';// mainnet
37+
// $uri = 'https://api.shasta.trongrid.io';// shasta testnet
3738
$api = new \Tron\Api(new Client(['base_uri' => $uri]));
3839

3940
$trxWallet = new \Tron\TRX($api);

tests/TRC20Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
class TRC20Test extends TestCase
2222
{
23-
const URI = 'https://api.shasta.trongrid.io'; // shasta testnet
23+
const URI = 'https://api.trongrid.io'; // mainnet
24+
// const URI = 'https://api.shasta.trongrid.io'; // shasta testnet
2425
const ADDRESS = 'TGytofNKuSReFmFxsgnNx19em3BAVBTpVB';
2526
const PRIVATE_KEY = '0xf1b4b7d86a3eff98f1bace9cb2665d0cad3a3f949bc74a7ffb2aaa968c07f521';
2627
const BLOCK_ID = 13402554;

0 commit comments

Comments
 (0)