๐ฏAccounts API Endpoints
Notes
Endpoints with ๐
ฟ๐๐
พ
are under the API Pro subscription. To upgrade your API plan, browse through the BscScan APIs page.
//imports
using BscScan.NetCore.Contracts;
using BscScan.NetCore.Models.Request.Accounts;
//inject
private readonly IBscScanContractsService _bscScanContractsService;
๐ฐGet BNB Balance for a Single Addressโ
Returns the BNB balance of a given address.โ
- Request
- Response
- ...
//Sample Request ๐
var balance = await _bscScanAccountsService.GetBnbBalanceAsync(new BnbBalanceRequest
{
Address = "0x70F657164e5b75689b64B7fd1fA275F334f28e18",
Tag = Tag.Latest
});
//will return a new object BnbBalance with values: ๐
var balance = new BnbBalance {
Staus="1",
Message="OK",
Result="154476596514118000947297331"
};
๐ For more information Check out Get BNB Balance for a Single Address
๐ฐGet BNB Balance for Multiple Addresses in a Single Callโ
Returns the balance of the accounts from a list of addresses.โ
- Request
- Response
- ...
//Sample Request ๐
string[] addresses =
{"0x70F657164e5b75689b64B7fd1fA275F334f28e18","0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1" };
var balances = await _bscScanAccountsService.GetMultipleBnbBalanceAsync(new MultipleBnbBalanceRequest
{
Addresses = addresses
});
//will return a new object BnbMultipleBalances with values: ๐
var balances = new BnbMultipleBalances
{
Message = "OK",
Status = "1",
Result = new List<BnbMultipleBalanceData>
{
new()
{
Account = "0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1",
Balance = "37700000000000001"
},
new()
{
Account = "0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD",
Balance = "4999777740000000000"
},
new()
{
Account = "0x70F657164e5b75689b64B7fd1fA275F334f28e18",
Balance = "57443177693229716"
}
}
};
๐ For more information Check out Get BNB Balance for Multiple Addresses in a Single Call
๐ฐGet Historical BNB Balance for a Single Address by BlockNo ๐
ฟ๐๐
พ
โ
Returns the historical BNB balance of an address at a certain block height.โ
- Request
- Response
- ...
//Sample Request ๐
var balance = await _bscScanAccountsService
.GetHistoricalBnbBalanceByBlockNoAsync("0x0DB011018728D1B91dDB3C77933a40B9B68C9fa7",2000000);
//will return a new object BnbBalanceHistoryByBlockNo with values: ๐
var balance = new BnbBalanceHistoryByBlockNo
{
Status = "1",
Message ="OK",
Result = new List<BnbBalanceHistoryByBlockNoData>
{
new()
{
Account = "0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1",
Balance = "37700000000000001"
},
new()
{
Account = "0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD",
Balance = "4999777740000000000"
},
new()
{
Account = "0x70F657164e5b75689b64B7fd1fA275F334f28e18",
Balance = "57443177693229716"
}
}
};
๐ For more information Check out Get Historical BNB Balance for a Single Address by BlockNo
๐ฐGet a list of 'Normal' Transactions By Addressโ
Returns the list of transactions performed by an address, with optional pagination.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new NormalTransactionsRequest
{
Address = "0xF426a8d0A94bf039A35CEE66dBf0227A7a12D11e",
//optional parameters with default values
//Sort = // default asc
//EndBlock = // default 9999999
//OffSet = // default 10
//Page = //default 1
//StartBlock //default 0
};
var normalTransactions = await _bscScanAccountsService
.GetNormalTransactionsByAddressAsync(parameters);
//will return a new object NormalTransactions with values: ๐
var normalTransactions = new BnbBalanceHistoryByBlockNo
{
Status = "1",
Message ="OK",
Result = new List<NormalTransactionData>
{
new()
{
BlockNumber = "10475175",
TimeStamp = "1630314219",
Hash = "0x9c12ea64ffe659114e1404509ae82d52ca8b785851ef99405d31a6b65fb4d0a2",
Nonce = "851069",
BlockHash = "0x52754e796549fe9ab7a4550e0f7d8286fdc8efcac185aad7e7c63ff7c0fb1e5a",
TransactionIndex = "22",
From = "0x161ba15a5f335c9f06bb5bbb0a9ce14076fbb645",
To = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
Value = "90541060000000000",
Gas = "207128",
GasPrice = "10000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x",
ContractAddress = "",
CumulativeGasUsed = "894108",
GasUsed = "21000",
Confirmations = "2362"
},
new()
{
BlockNumber = "10477535",
TimeStamp = "1630321300",
Hash = "0xb119836850a9f30e9191e7445bfc97ccc5fda00884639178bce42818f837ee18",
Nonce = "0",
BlockHash = "0x2423e7586ed4a73715818e6ea7f17e74d0ac948a852f549a5b9f7d4f3bc6ea70",
TransactionIndex = "181",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x55d398326f99059ff775485246999027b3197955",
Value = "0",
Gas = "53731",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x095ea7b300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
ContractAddress = "",
CumulativeGasUsed = "19645702",
GasUsed = "44406",
Confirmations = "5381267"
},
new()
{
BlockNumber = "10477043",
TimeStamp = "1630319824",
Hash = "0x6e713dbd313aa175b401e983c242d16b022939f95ca6b9691f77e2e22273e119",
Nonce = "1",
BlockHash = "0x5f257165d2652c584bdc732e4103bd9936db184643b76b5f79d0ebf3c83f4bee",
TransactionIndex = "101",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "248827",
GasPrice = "5000000000",
IsError = "1",
TxReceiptStatus = "0",
Input = "0x38ed173900000000000000000000000000000000000000000000000821ab0d441498000000000000000000000000000000000000000000000000060c0fd51f58cb54c26300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612cb96e000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000fbe0b4ae6e5a200c36a341299604d5f71a5f0a48",
ContractAddress = "",
CumulativeGasUsed = "20086138",
GasUsed = "38978",
Confirmations = "5379517"
},
new()
{
BlockNumber = "10477046",
TimeStamp = "1630319833",
Hash = "0x649d0d3d26c98a9f9184e61e66e7b45ebe212694d49ed6c7cbeff756b840fdbf",
Nonce = "2",
BlockHash = "0xcffc61a913fdcdc848887a9c9f1827079cde876257d8914aa9cde56bbd247214",
TransactionIndex = "199",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "248827",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x38ed173900000000000000000000000000000000000000000000000821ab0d44149800000000000000000000000000000000000000000000000005f2e5e6d9f3bec73fd100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612cb97a000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000fbe0b4ae6e5a200c36a341299604d5f71a5f0a48",
ContractAddress = "",
CumulativeGasUsed = "28162844",
GasUsed = "195000",
Confirmations = "5379514"
},
new()
{
BlockNumber = "10477535",
TimeStamp = "1630321300",
Hash = "0xf95f98ec21315ce7b397be1911719c9b3ab0e9386a34103e052ab36e41e9dc3f",
Nonce = "3",
BlockHash = "0xaa8e7de4eaced07d438438dfab90c84fea2e270f50a71418a89c87852d2b2a2a",
TransactionIndex = "253",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "254285",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x38ed173900000000000000000000000000000000000000000000000805e99fdcc5d000000000000000000000000000000000000000000000000000976181709dbde2904900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612e1ec5000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000002d5c9167fdd5c068c8fcb8992e6af639b42fbf70",
ContractAddress = "",
CumulativeGasUsed = "45034490",
GasUsed = "199442",
Confirmations = "5379025"
},
new()
{
BlockNumber = "10477545",
TimeStamp = "1630321330",
Hash = "0x51bc460532089aceb56598db9620748c70c1aba0e63b38e624225c6ae34ac172",
Nonce = "4",
BlockHash = "0x6be6eec2812617396c8aa2c15e430582b24f0e18944545574ce309edc2aad01e",
TransactionIndex = "190",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "235847",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x38ed173900000000000000000000000000000000000000000000000805e99fdcc5d0000000000000000000000000000000000000000000000000009519b6c56da3ee2b3400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612e1ee3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000002d5c9167fdd5c068c8fcb8992e6af639b42fbf70",
ContractAddress = "",
CumulativeGasUsed = "32042276",
GasUsed = "184442",
Confirmations = "5379015"
},
new()
{
BlockNumber = "10477563",
TimeStamp = "1630321384",
Hash = "0x6c6dfe100921c4a13ca52e94304e146a39c64a9cefc033dd0affee39add6863e",
Nonce = "5",
BlockHash = "0xac1c762de805b6d06e1fb37da8e6bad6154881e229ce39ce1f32b8ca4d901d1f",
TransactionIndex = "225",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x2d5c9167fdd5c068c8fcb8992e6af639b42fbf70",
Value = "0",
Gas = "57043",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x095ea7b300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
ContractAddress = "",
CumulativeGasUsed = "34059780",
GasUsed = "46817",
Confirmations = "5378997"
},
new()
{
BlockNumber = "10478649",
TimeStamp = "1630324648",
Hash = "0x707f56ec3ab9073a6ed2bfb1d880a49854ed823852f723da22c0095071d6adee",
Nonce = "6",
BlockHash = "0xc40bbe4f55a9dbd8dcbf62cf2142931f78907d00597991b0721166bbdae579cf",
TransactionIndex = "293",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0xfbe0b4ae6e5a200c36a341299604d5f71a5f0a48",
Value = "0",
Gas = "54616",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x095ea7b300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
ContractAddress = "",
CumulativeGasUsed = "37091490",
GasUsed = "45138",
Confirmations = "5377911"
},
new()
{
BlockNumber = "10478679",
TimeStamp = "1630324738",
Hash = "0xad1aea072bb58c561da0de9a213ee8b7aa17f7cfc8ef167ef12cb661ce90af0d",
Nonce = "7",
BlockHash = "0x5217dba007f2c69312123ec8e2302f149d1cf8212464b594818983d62b714494",
TransactionIndex = "223",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "230655",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x38ed17390000000000000000000000000000000000000000000005fa7ea25a8ef97159d9000000000000000000000000000000000000000000000009e7b204ca2fb818cf00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612e2c360000000000000000000000000000000000000000000000000000000000000003000000000000000000000000fbe0b4ae6e5a200c36a341299604d5f71a5f0a48000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000055d398326f99059ff775485246999027b3197955",
ContractAddress = "",
CumulativeGasUsed = "31135123",
GasUsed = "165429",
Confirmations = "5377881"
},
new()
{
BlockNumber = "10478709",
TimeStamp = "1630324828",
Hash = "0xbe203b6c918806c5900d437d9b574b9d0ca24dc3a6a36c62cd9d40057f0c2bd5",
Nonce = "8",
BlockHash = "0x5b8c99e89415d92d9327a703b4fd15cae0a9183736efaa57d489602b31d5a823",
TransactionIndex = "294",
From = "0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
To = "0x10ed43c718714eb63d5aa57b78b54704e256024e",
Value = "0",
Gas = "235776",
GasPrice = "5000000000",
IsError = "0",
TxReceiptStatus = "1",
Input = "0x38ed173900000000000000000000000000000000000000000000012f799d681ae5bd2f270000000000000000000000000000000000000000000000105b17f83ed8f790a300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612e2c8a00000000000000000000000000000000000000000000000000000000000000030000000000000000000000002d5c9167fdd5c068c8fcb8992e6af639b42fbf70000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000055d398326f99059ff775485246999027b3197955",
ContractAddress = "",
CumulativeGasUsed = "34879027",
GasUsed = "181746",
Confirmations = "5377851"
}
}
};
๐ For more information Check out Get a list of 'Normal' Transactions By Address
๐ฐGet a list of 'Internal' Transactions by Addressโ
Returns the list of internal transactions performed by an address, with optional pagination.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new InternalTransactionsRequest
{
Address = "0x0000000000000000000000000000000000001004",
Sort = Sort.Asc,
StartBlock = 0,
EndBlock = 2702578,
Page = 1,
OffSet = 10
};
var internalTransactions = await _bscScanAccountsService
.GetInternalTransactionsByAddressAsync(parameters);
//will return a new object InternalTransactionsByAddress with values: ๐
var internalTransactions = new InternalTransactionsByAddress
{
Status = "1",
Message ="OK",
Result = new List<InternalTransactionDataByAddress>
{
new()
{
BlockNumber = "958",
TimeStamp = "1598674477",
Hash = "0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "1084",
TimeStamp = "1598674855",
Hash = "0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "1084",
TimeStamp = "1598674855",
Hash = "0x86657b250b6f129f6ba5d249f717c20b05f899a80ce440696a468c702be9a642",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "1084",
TimeStamp = "1598674855",
Hash = "0x86657b250b6f129f6ba5d249f717c20b05f899a80ce440696a468c702be9a642",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "3192",
TimeStamp = "1598681179",
Hash = "0x79575ff791606ef2c7d69f430d1fee1c25ef8d56275da94e6ac49c9c4cc5f433",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "50000000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "4777",
TimeStamp = "1598686111",
Hash = "0xaa2a09992a60371307300538863f1efcd15d1e52830b866ca44cbd8d58e477b1",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "1000000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "4777",
TimeStamp = "1598686111",
Hash = "0xaa2a09992a60371307300538863f1efcd15d1e52830b866ca44cbd8d58e477b1",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "1000000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "5561",
TimeStamp = "1598688463",
Hash = "0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "1000000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "5561",
TimeStamp = "1598688463",
Hash = "0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "1000000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
}
}
};
๐ For more information Check out Get a list of 'Internal' Transactions by Address
๐ฐGet 'Internal Transactions' by Transaction Hashโ
Returns the list of internal transactions performed within a transaction.โ
- Request
- Response
- ...
//Sample Request ๐
var internalTransactions = await _bscScanAccountsService
.GetInternalTransactionsByTransactionHashAsync("0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028");
//will return a new object InternalTransactionsByHash with values: ๐
var internalTransactions = new InternalTransactionsByHash
{
Status = "1",
Message ="OK",
Result = new List<InternalTransactionDataByHash>
{
new()
{
BlockNumber = "958",
TimeStamp = "1598674477",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "958",
TimeStamp = "1598674477",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
IsError = "0",
ErrCode = ""
}
}
};
๐ For more information Check out Get 'Internal Transactions' by Transaction Hash
๐ฐGet "Internal Transactions" by Block Rangeโ
Returns the list of internal transactions performed within a block range, with optional pagination.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new InternalTransactionsByBlockRangeRequest
{
StartBlock = 0,
EndBlock = 2702578,
Page = 1,
OffSet = 10,
Sort = Sort.Asc
};
var internalTransactions = await _bscScanAccountsService
.GetInternalTransactionsByBlockRangeAsync(parameters);
//will return a new object InternalTransactionsByBlockRange with values: ๐
var internalTransactions = new InternalTransactionsByBlockRange
{
Status = "1",
Message ="OK",
Result = new List<InternalTransactionDataByBlockRange>
{
new()
{
BlockNumber = "958",
TimeStamp = "1598674477",
Hash = "0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "958",
TimeStamp = "1598674477",
Hash = "0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "1084",
TimeStamp = "1598674855",
Hash = "0x86657b250b6f129f6ba5d249f717c20b05f899a80ce440696a468c702be9a642",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "1084",
TimeStamp = "1598674855",
Hash = "0x86657b250b6f129f6ba5d249f717c20b05f899a80ce440696a468c702be9a642",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "3192",
TimeStamp = "1598681179",
Hash = "0x79575ff791606ef2c7d69f430d1fee1c25ef8d56275da94e6ac49c9c4cc5f433",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "3192",
TimeStamp = "1598681179",
Hash = "0x79575ff791606ef2c7d69f430d1fee1c25ef8d56275da94e6ac49c9c4cc5f433",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "4777",
TimeStamp = "1598686111",
Hash = "0xaa2a09992a60371307300538863f1efcd15d1e52830b866ca44cbd8d58e477b1",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "4777",
TimeStamp = "1598686111",
Hash = "0xaa2a09992a60371307300538863f1efcd15d1e52830b866ca44cbd8d58e477b1",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "5561",
TimeStamp = "1598688463",
Hash = "0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
From = "0x0000000000000000000000000000000000001004",
To = "0x4e656459ed25bf986eea1196bc1b00665401645d",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "12300",
GasUsed = "0",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
},
new()
{
BlockNumber = "5561",
TimeStamp = "1598688463",
Hash = "0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
From = "0x0000000000000000000000000000000000001004",
To = "0x0000000000000000000000000000000000001005",
Value = "100000000000000",
ContractAddress = "",
Input = "",
Type = "call",
Gas = "2300",
GasUsed = "55",
TraceId = "0_1_1",
IsError = "0",
ErrCode = ""
}
}
};
๐ For more information Check out Get "Internal Transactions" by Block Range
๐ฐGet a list of 'BEP-20 Token Transfer Events' by Addressโ
Returns the list of BEP-20 tokens transferred by an address, with optional filtering by token contract.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new Bep20TokenTransferEventsRequest
{
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
Address = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
StartBlock = 0,
EndBlock = 999999999,
Page = 1,
OffSet = 5,
Sort = Sort.Asc
};
var bep20TokenTransferEvents = await _bscScanAccountsService
.GetBep20TokenTransferEventsByAddressAsync(parameters);
//will return a new object Bep20TokenTransferEvents with values: ๐
var bep20TokenTransferEvents = new Bep20TokenTransferEvents
{
Status = "1",
Message ="OK",
Result = new List<Bep20TokenTransferEventData>
{
new()
{
BlockNumber = "2304192",
TimeStamp = "1605585978",
Hash = "0x7a5abf86c82d3f97a40dd841a9f2089fbe3ac1332157c01bd1a1d89f575c45fc",
Nonce = "57",
BlockHash= "0x703438fd8ba435996895a6b9b711934cc590c3e9297a7066419aa88dd9d83acc",
From = "0x641414e2a04c8f8ebbf49ed47cc87dccba42bf07",
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
To = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
Value = "27605634758857128698365",
TokenName = "Bunny Token",
TokenSymbol = "BUNNY",
TokenDecimal = "18",
TransactionIndex = "2",
Gas = "5000000",
GasPrice = "20000000000",
GasUsed = "2312130",
CumulativeGasUsed = "2475576",
Input = "deprecated",
Confirmations = "13579579"
},
new()
{
BlockNumber = "2304275",
TimeStamp = "1605586227",
Hash = "0x2712bc982d2486ed87e48965d87b8087695472dcd394a4e31fd182e3e8fb0193",
Nonce = "830",
BlockHash= "0x1715a97b8333aa91cd495dc19a495402683256f85faf13f4545b629844920faa",
From = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
To = "0xfb2b1ff4a80af6d4f2798e34426e7766626d8f88",
Value = "500000000000000000",
TokenName = "Bunny Token",
TokenSymbol = "BUNNY",
TokenDecimal = "18",
TransactionIndex = "0",
Gas = "208132",
GasPrice = "20000000000",
GasUsed = "163927",
CumulativeGasUsed = "163927",
Input = "deprecated",
Confirmations = "13579496"
},
new()
{
BlockNumber = "2304280",
TimeStamp = "1605586242",
Hash = "0x9b4e67f42d2ba35b5804d9d1af8de1181dd132238cdae1976515f186da130471",
Nonce = "1375",
BlockHash= "0x05e8a2c625c9cd67cf08ab8ca051ea709f445f7faf459a4c4f629e93a6f2c978",
From = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
To = "0xf38a409da2823585b66d1164d2520b78d4fab049",
Value = "1995783323472865824",
TokenName = "Bunny Token",
TokenSymbol = "BUNNY",
TokenDecimal = "18",
TransactionIndex = "1",
Gas = "153052",
GasPrice = "20000000000",
GasUsed = "125930",
CumulativeGasUsed = "323098",
Input = "deprecated",
Confirmations = "13579491"
},
new()
{
BlockNumber = "2304293",
TimeStamp = "1605586281",
Hash = "0x32fab5316875f73e6bcb10cc82a5cae703b79606b1d7dbdeebaa374b292f078a",
Nonce = "216",
BlockHash= "0x144fb6e795678fe6f2418b35ee0d186346f34a629dab8213ac0b9e72de5e7997",
From = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
To = "0xb1c0d822e2cd6d564d71b50aa02fdee9d198943e",
Value = "1995494474791264035",
TokenName = "Bunny Token",
TokenSymbol = "BUNNY",
TokenDecimal = "18",
TransactionIndex = "1",
Gas = "166655",
GasPrice = "23000000000",
GasUsed = "125930",
CumulativeGasUsed = "173082",
Input = "deprecated",
Confirmations = "13579478"
},
new()
{
BlockNumber = "2304303",
TimeStamp = "1605586311",
Hash = "0xc9c999d7573fbcf70429b4c0d8ce01ef996a92f0c23bc07ac0adfb5cd9559bb0",
Nonce = "66",
BlockHash= "0x10b242b417becafd5d7dbdba3ed6377134870147de476c3ac4d9b33190b228c8",
From = "0xe87f02606911223c2cf200398ffaf353f60801f7",
ContractAddress = "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
To = "0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
Value = "27596643935905551037808",
TokenName = "Bunny Token",
TokenSymbol = "BUNNY",
TokenDecimal = "18",
TransactionIndex = "3",
Gas = "5000000",
GasPrice = "20000000000",
GasUsed = "200227",
CumulativeGasUsed = "527144",
Input = "deprecated",
Confirmations = "13579468"
}
}
};
๐ For more information Check out Get a list of 'BEP-20 Token Transfer Events' by Address
๐ฐGet a list of 'BEP-721 Token Transfer Events' by Addressโ
Returns the list of BEP-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new Bep721TokenTransferEventsRequest
{
ContractAddress = "0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
Address = "0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
StartBlock = 0,
EndBlock = 999999999,
Page = 1,
OffSet = 3,
Sort = Sort.Asc
};
var bep721TokenTransferEvents = await _bscScanAccountsService
.GetBep721TokenTransferEventsByAddressAsync(parameters);
//will return a new object Bep721TokenTransferEvents with values: ๐
var bep721TokenTransferEvents = new Bep721TokenTransferEvents
{
Status = "1",
Message ="OK",
Result = new List<Bep721TokenTransferEventData>
{
new()
{
BlockNumber = "2657100",
TimeStamp = "1606646313",
Hash = "0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
Nonce = "6",
BlockHash= "0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
From = "0x0000000000000000000000000000000000000000",
ContractAddress = "0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
To = "0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
TokenId = "384552",
Value = "27605634758857128698365",
TokenName = "Pancake Lottery Ticket",
TokenSymbol = "PLT",
TokenDecimal = "0",
TransactionIndex = "2",
Gas = "27000000",
GasPrice = "20000000000",
GasUsed = "22547256",
CumulativeGasUsed = "22947060",
Input = "deprecated",
Confirmations = "13227172"
},
new()
{
BlockNumber = "2657100",
TimeStamp = "1606646313",
Hash = "0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
Nonce = "6",
BlockHash= "0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
From = "0x0000000000000000000000000000000000000000",
ContractAddress = "0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
To = "0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
TokenId = "384553",
Value = "27605634758857128698365",
TokenName = "Pancake Lottery Ticket",
TokenSymbol = "PLT",
TokenDecimal = "0",
TransactionIndex = "2",
Gas = "27000000",
GasPrice = "20000000000",
GasUsed = "22547256",
CumulativeGasUsed = "22947060",
Input = "deprecated",
Confirmations = "13227172"
},
new()
{
BlockNumber = "2657100",
TimeStamp = "1606646313",
Hash = "0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
Nonce = "6",
BlockHash= "0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
From = "0x0000000000000000000000000000000000000000",
ContractAddress = "0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
To = "0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
TokenId = "384554",
Value = "27605634758857128698365",
TokenName = "Pancake Lottery Ticket",
TokenSymbol = "PLT",
TokenDecimal = "0",
TransactionIndex = "2",
Gas = "27000000",
GasPrice = "20000000000",
GasUsed = "22547256",
CumulativeGasUsed = "22947060",
Input = "deprecated",
Confirmations = "13227172"
}
}
};
๐ For more information Check out Get a list of 'BEP-721 Token Transfer Events' by Address
๐ฐGet list of Blocks Validated by Addressโ
Returns the list of blocks validated by an address.โ
- Request
- Response
- ...
//Sample Request ๐
var parameters = new BlocksValidatedRequest
{
Address = "0x78f3adfc719c99674c072166708589033e2d9afe",
Page = 1,
OffSet = 5,
BlockType = "blocks"
};
var blocksValidatedByAddress = await _bscScanAccountsService
.GetBlocksValidatedByAddressAsync(parameters);
//will return a new object BlocksValidated with values: ๐
var blocksValidatedByAddress = new BlocksValidated
{
Status = "1",
Message ="OK",
Result = new List<BlocksValidatedData>
{
new()
{
BlockNumber = "5428195",
TimeStamp = "1614988862",
BlockReward = "106809335800031367"
},
new()
{
BlockNumber = "5428174",
TimeStamp = "1614988799",
BlockReward = "93803140610000000"
},
new()
{
BlockNumber = "5428153",
TimeStamp = "1614988736",
BlockReward = "41095458150219995"
},
new()
{
BlockNumber = "5428132",
TimeStamp = "1614988673",
BlockReward = "56214237200119969"
} ,
new()
{
BlockNumber = "5428111",
TimeStamp = "1614988610",
BlockReward = "59449100000000000"
}
}
};
๐ For more information Check out Get list of Blocks Validated by Address