Skip to content

Commit 081b303

Browse files
committed
BEP20 corrections
1 parent 668945b commit 081b303

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

lib/Bscscan/Api/Account.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ public function transactionListInternalByAddress($address, $startBlock = 0, $end
129129
}
130130

131131
/**
132-
* Get a list of 'ERC20 - Token Transfer Events' by Address
132+
* Get a list of 'BEP20 - Token Transfer Events' by Address
133133
*
134134
* Usage:
135-
* ERC-20 transfers from an address, specify the address parameter
136-
* ERC-20 transfers from a contract address, specify the contract address parameter
137-
* ERC-20 transfers from an address filtered by a token contract, specify both address and contract address parameters.
135+
* BEP-20 transfers from an address, specify the address parameter
136+
* BEP-20 transfers from a contract address, specify the contract address parameter
137+
* BEP-20 transfers from an address filtered by a token contract, specify both address and contract address parameters.
138138
*
139139
* @param string $address representing the address to check for balance
140140
* @param int $contractAddress representing the token contract address to check for balance
@@ -147,7 +147,7 @@ public function transactionListInternalByAddress($address, $startBlock = 0, $end
147147
* @return array
148148
* @throws ErrorException
149149
*/
150-
public function tokenERC20TransferListByAddress($address = null, $contractAddress = null, $sort = "asc", $page = null, $offset = null)
150+
public function tokenBEP20TransferListByAddress($address = null, $contractAddress = null, $sort = "asc", $page = null, $offset = null)
151151
{
152152
if (is_null($address) && is_null($contractAddress)) {
153153
throw new InvalidArgumentException('Please specify at least one address');

lib/Bscscan/Api/Token.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
class Token extends AbstractApi
1212
{
1313
/**
14-
* Get ERC20-Token TotalSupply by ContractAddress
15-
* Returns the current amount of an ERC-20 token in circulation.
14+
* Get BEP20-Token TotalSupply by ContractAddress
15+
* Returns the current amount of an BEP-20 token in circulation.
1616
*
17-
* @param string $contractAddress the contract address of the ERC-20 token
17+
* @param string $contractAddress the contract address of the BEP-20 token
1818
*
1919
* @return array
2020
* @throws \Bscscan\Exception\ErrorException
@@ -29,10 +29,10 @@ public function getTokenSupply($contractAddress)
2929
}
3030

3131
/**
32-
* Get ERC20-Token Account Balance for TokenContractAddress
33-
* Returns the current balance of an ERC-20 token of an address.
32+
* Get BEP20-Token Account Balance for TokenContractAddress
33+
* Returns the current balance of an BEP-20 token of an address.
3434
*
35-
* @param string $contractAddress the contract address of the ERC-20 token
35+
* @param string $contractAddress the contract address of the BEP-20 token
3636
* @param string $address the string representing the address to check for token balance
3737
*
3838
* @return array
@@ -49,10 +49,10 @@ public function getTokenBalance($contractAddress, $address)
4949
}
5050

5151
/**
52-
* Get Historical ERC20-Token TotalSupply by ContractAddress & BlockNo
53-
* Returns the amount of an ERC-20 token in circulation at a certain block height.
52+
* Get Historical BEP20-Token TotalSupply by ContractAddress & BlockNo
53+
* Returns the amount of an BEP-20 token in circulation at a certain block height.
5454
*
55-
* @param string $contractAddress the contract address of the ERC-20 token
55+
* @param string $contractAddress the contract address of the BEP-20 token
5656
* @param string $blockNumber the integer block number to check total supply for eg. 12697906
5757
*
5858
* @return array
@@ -69,10 +69,10 @@ public function getTokenSupplyHistory($contractAddress, $blockNumber)
6969
}
7070

7171
/**
72-
* Get Historical ERC20-Token Account Balance for TokenContractAddress by BlockNo
73-
* Returns the balance of an ERC-20 token of an address at a certain block height.
72+
* Get Historical BEP20-Token Account Balance for TokenContractAddress by BlockNo
73+
* Returns the balance of an BEP-20 token of an address at a certain block height.
7474
*
75-
* @param string $contractAddress the contract address of the ERC-20 token
75+
* @param string $contractAddress the contract address of the BEP-20 token
7676
* @param string $address the string representing the address to check for balance
7777
* @param string $blockNumber the integer block number to check total supply for eg. 12697906
7878
*
@@ -92,9 +92,9 @@ public function getTokenBalanceHistory($contractAddress, $address, $blockNumber)
9292

9393
/**
9494
* Get Token Info by ContractAddress
95-
* Returns project information and social media links of an ERC-20/ERC-721 token.
95+
* Returns project information and social media links of an BEP-20/ERC-721 token.
9696
*
97-
* @param string $contractAddress the contract address of the ERC-20/ERC-721 token to retrieve token info
97+
* @param string $contractAddress the contract address of the BEP-20/ERC-721 token to retrieve token info
9898
*
9999
* @return array
100100
* @throws \Bscscan\Exception\ErrorException

0 commit comments

Comments
 (0)