dennispitallano / bscscan.netcore Goto Github PK
View Code? Open in Web Editor NEWA BscScan Wrapper for .Net Core
License: MIT License
A BscScan Wrapper for .Net Core
License: MIT License
Returns the number of a most recent block
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_blocknumber
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Returns the list of BEP-20 tokens transferred by an address, with optional filtering by token contract.
Sample request:
https://api.bscscan.com/api
?module=account
&action=tokentx
&contractaddress=0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51
&address=0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a
&page=1
&offset=5
&startblock=0
&endblock=999999999
&sort=asc
&apikey=YourApiKeyToken
Returns the historical amount of a BEP-20 token in circulation at a certain block height.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-historical-bep-20-token-totalsupply-by-contractaddress-and-blockno
Sample Request :
https://api.bscscan.com/api
?module=stats
&action=tokensupplyhistory
&contractaddress=0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51
&blockno=4000000
&apikey=YourApiKeyToken
Returns the BEP-721 token inventory of an address, filtered by contract address.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-address-bep721-token-inventory-by-contract-address
Sample Request:
https://api.bscscan.com/api
?module=account
&action=addresstokennftinventory
&address=0x99817ce62abf5b17f58e71071e590cf958e5a1bf
&contractaddress=0x5e74094cd416f55179dbd0e45b1a8ed030e396a1
&page=1
&offset=100
&apikey=YourApiKeyToken
Returns the number of transactions performed by an address.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_gettransactioncount
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x4430b3230294D12c6AB2aAC5C2cd68E80B16b581
&tag=latest
&apikey=YourApiKeyToken
Makes a call or transaction, which won't be added to the blockchain and returns the gas used.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_estimategas
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0x4e71d92d
&to=0xEeee7341f206302f2216e39D715B96D8C6901A1C
&value=0xff22
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Returns the status code of transaction execution.
https://api.bscscan.com/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0xe9975702518c79caf81d5da65dea689dcac701fcdd063f848d4f03c85392fd00
&apikey=YourApiKeyToken
Submits a contract source code to BscScan for verification.
Returns the daily average of time needed for a block to be successfully validated.
Sample request:
https://api.bscscan.com/api
?module=stats
&action=dailyavgblocktime
&startdate=2021-08-01
&enddate=2021-08-31
&sort=asc
&apikey=YourApiKeyToken
Returns the value from a storage position at a given address.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_getstorageat
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Submits a pre-signed transaction for broadcast to the BNB Smart Chain network.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_sendrawtransaction
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Ref: https://docs.bscscan.com/api-endpoints/logs#sample-log-api-queries
The Event Log API was designed to provide an alternative to the native eth_getLogs.
Below are the list of supported filter parameters:
Returns the Solidity source code of a verified smart contract.
Sample request:
https://api.bscscan.com/api
?module=contract
&action=getsourcecode
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&apikey=YourApiKeyToken
Returns the list of internal transactions performed within a transaction.
Reference: https://docs.bscscan.com/api-endpoints/accounts#get-internal-transactions-by-transaction-hash
Sample Request:
https://api.bscscan.com/api
?module=account
&action=txlistinternal
&txhash=0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028
&apikey=YourApiKeyToken
Returns the current circulating supply of a BEP-20 token.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-bep-20-token-circulatingsupply-by-contractaddress
Sample Request:
https://api.bscscan.com/api
?module=stats
&action=tokenCsupply
&contractaddress=0xe9e7cea3dedca5984780bafc599bd69add087d56
&apikey=YourApiKeyToken
Returns the current balance of a BEP-20 token of an address.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-bep-20-token-account-balance-by-contractaddress
Sample Request:
https://api.bscscan.com/api
?module=account
&action=tokenbalance
&contractaddress=0xe9e7cea3dedca5984780bafc599bd69add087d56
&address=0x89e73303049ee32919903c09e8de5629b84f59eb
&tag=latest
&apikey=YourApiKeyToken
Returns the historical BNB balance of an address at a certain block height.
Sample request:
https://api.bscscan.com/api
?module=account
&action=balancehistory
&address=0x0DB011018728D1B91dDB3C77933a40B9B68C9fa7
&blockno=2000000
&apikey=YourApiKeyToken
Returns the daily average block size within a date range.
Sample request:
https://api.bscscan.com/api
?module=stats
&action=dailyavgblocksize
&startdate=2021-08-01
&enddate=2021-08-31
&sort=asc
&apikey=YourApiKeyToken
Returns the balance of the accounts from a list of addresses.
Sample request:
https://api.bscscan.com/api
?module=account
&action=balancemulti
&address=0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1,0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD,0x70F657164e5b75689b64B7fd1fA275F334f28e18
&tag=latest
&apikey=YourApiKeyToken
Returns code at a given address.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_getcode
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getCode
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&tag=latest
&apikey=YourApiKeyToken
Returns the list of internal transactions performed within a block range, with optional pagination.
Reference: https://docs.bscscan.com/api-endpoints/accounts#get-internal-transactions-by-block-range
Sample Request:
https://api.bscscan.com/api
?module=account
&action=txlistinternal
&startblock=0
&endblock=2702578
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Return the current token holders and number of tokens held.
Sample Request:
https://api.bscscan.com/api
?module=token
&action=tokenholderlist
&contractaddress=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&page=1
&offset=10
&apikey=YourApiKeyToken
Returns the current price per gas in wei.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_gasprice
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Returns information about a block by block number.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_getblockbynumber
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0xa11446
&boolean=true
&apikey=YourApiKeyToken
Returns the BEP-721 tokens and amount held by an address.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-address-bep721-token-holding
Sample Request:
https://api.bscscan.com/api
?module=account
&action=addresstokennftbalance
&address=0x99817ce62abf5b17f58e71071e590cf958e5a1bf
&page=1
&offset=100
&apikey=YourApiKeyToken
Returns the balance of a BEP-20 token of an address at a certain block height.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-historical-bep-20-token-account-balance-by-contractaddress-and-blockno
sample Request:
https://api.bscscan.com/api
?module=account
&action=tokenbalancehistory
&contractaddress=0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51
&address=0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a
&blockno=4000000
&apikey=YourApiKeyToken
Returns the list of BEP-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.
Sample Request:
https://api.bscscan.com/api
?module=account
&action=tokennfttx
&contractaddress=0x5e74094cd416f55179dbd0e45b1a8ed030e396a1
&address=0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c
&page=1
&offset=100
&startblock=0
&endblock=999999999
&sort=asc
&apikey=YourApiKeyToken
Returns the number of blocks validated daily and the amount of block rewards.
Ref: https://docs.bscscan.com/api-endpoints/blocks#get-daily-block-count-and-rewards
Sample request:
https://api.bscscan.com/api
?module=stats
&action=dailyblkcount
&startdate=2021-08-01
&enddate=2021-08-31
&sort=asc
&apikey=YourApiKeyToken
Returns information about a transaction by block number and transaction index position.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_gettransactionbyblocknumberandindex
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0xa11446
&index=0x1
&apikey=YourApiKeyToken
Returns the amount of block rewards distributed to validators daily.
Ref: https://docs.bscscan.com/api-endpoints/blocks#get-daily-block-rewards
Sample request:
https://api.bscscan.com/api
?module=stats
&action=dailyblockrewards
&startdate=2021-08-01
&enddate=2021-08-31
&sort=asc
&apikey=YourApiKeyToken
Executes a new message call immediately without creating a transaction on the block chain.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_call
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_call
&to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
&tag=latest
&apikey=YourApiKeyToken
Returns the BEP-20 tokens and amount held by an address.
Ref:https://docs.bscscan.com/api-endpoints/tokens#get-address-bep20-token-holding
Sample Request:
https://api.bscscan.com/api
?module=account
&action=addresstokenbalance
&address=0x99817ce62abf5b17f58e71071e590cf958e5a1bf
&page=1
&offset=100
&apikey=YourApiKeyToken
Returns the block reward awarded for validating a certain block.
Ref: https://docs.bscscan.com/api-endpoints/blocks#get-block-rewards-by-blockno
Sample request:
https://api.bscscan.com/api
?module=block
&action=getblockreward
&blockno=2170000
&apikey=YourApiKeyToken
Returns the total supply of a BEP-20 token.
Ref: https://docs.bscscan.com/api-endpoints/tokens#get-bep-20-token-totalsupply-by-contractaddress
Sample Request:
https://api.bscscan.com/api
?module=stats
&action=tokensupply
&contractaddress=0xe9e7cea3dedca5984780bafc599bd69add087d56
&apikey=YourApiKeyToken
reference: https://docs.bscscan.com/api-endpoints/accounts#get-bnb-balance-for-a-single-address
BscSsan Request sample
https://api.bscscan.com/api
?module=account
&action=balance
&address=0x70F657164e5b75689b64B7fd1fA275F334f28e18
&apikey=YourApiKeyToken
Returns information about a transaction requested by transaction hash.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_gettransactionbyhash
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0x9983332a52df5ad1dabf8fa81b1642e9383f302a399c532fc47ecb6a7a967166
&apikey=YourApiKeyToken
Returns the list of transactions performed by an address, with optional pagination.
Reference: https://docs.bscscan.com/api-endpoints/accounts#get-a-list-of-normal-transactions-by-address
Sample Request:
https://api.bscscan.com/api
?module=account
&action=txlist
&address=0xF426a8d0A94bf039A35CEE66dBf0227A7a12D11e
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Returns project information and social media links of a BEP-20/BEP-721 token.
Ref:https://docs.bscscan.com/api-endpoints/tokens#get-token-info-by-contractaddress
Sample Request:
https://api.bscscan.com/api
?module=token
&action=tokeninfo
&contractaddress=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&apikey=YourApiKeyToken
Returns the estimated time remaining, in seconds, until a certain block is validated.
Ref: https://docs.bscscan.com/api-endpoints/blocks#get-estimated-block-countdown-time-by-blockno
Sample Request:
https://api.bscscan.com/api
?module=block
&action=getblockcountdown
&blockno=11926850
&apikey=YourApiKeyToken
Returns the contract Application Binary Interface ( ABI ) of a verified smart contract.
sample request:
https://api.bscscan.com/api
?module=contract
&action=getabi
&address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
&apikey=YourApiKeyToken
Returns the list of internal transactions performed by an address, with optional pagination.
Reference: https://docs.bscscan.com/api-endpoints/accounts#get-a-list-of-internal-transactions-by-address
Sample Request:
https://api.bscscan.com/api
?module=account
&action=txlistinternal
&address=0x0000000000000000000000000000000000001004
&startblock=0
&endblock=2702578
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Returns the number of transactions in a block.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_getblocktransactioncountbynumber
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0xa11446
&apikey=YourApiKeyToken
Returns the block number that was validated at a certain timestamp.
Ref: https://docs.bscscan.com/api-endpoints/blocks#get-block-number-by-timestamp
Sample request:
https://api.bscscan.com/api
?module=block
&action=getblocknobytime
×tamp=1601510400
&closest=before
&apikey=YourApiKeyToken
Submits a proxy contract source code to Etherscan for verification.
Returns the list of blocks validated by an address.
Reference: https://docs.bscscan.com/api-endpoints/accounts#get-list-of-blocks-validated-by-address
Sample Request:
https://api.bscscan.com/api
?module=account
&action=getminedblocks
&address=0x78f3adfc719c99674c072166708589033e2d9afe
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
Returns the receipt of a transaction that has been validated.
Ref: https://docs.bscscan.com/api-endpoints/geth-parity-proxy#eth_gettransactionreceipt
Sample Request:
https://api.bscscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0x2122b2317d6cf409846f80e829c1e45ecb30306907ba0a00a02730c78890739f
&apikey=YourApiKeyToken
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.