Zincirler

BNB Smart Chain

Build web3 dApps effortlessly

BNB Beacon Chain

Sunset Complete

BNB Chain ekosisteminin staking ve yönetişim katmanı

DokümantasyonGitHubFaucetStake BNBBscScanBSCTraceDev ToolsLearn more about FusionDokümantasyonBeacon Chain TarayıcısıToken Recovery ToolDokümantasyonGitHubFaucetKöprüGreenfieldScanDCellarDev ToolsDokümantasyonGitHubFaucetKöprüopBNBScanDev Tools

Geliştiriciler


Submit dApps

BNB Smart ChainBNB GreenfieldopBNBBNB HackBNB Incubation Alliance (BIA)MVB Hızlandırma ProgramıBNB Chain GrantsBaşlayınGas GrantsTVL Incentive ProgramMEME Coins InnovationTüm Programları Görüntüle

Solutions

Tokenization

Get Your Business Into Web3

Company TokenizationReal World Assets TokenizationNFT Loyalty ProgramLaunch MemecoinStep by Step Guide

Ekosistem

Staking

Earn BNB and rewards effortlessly

Native StakingLiquid Staking

Topluluk

Careers🔥

Explore Opportunities on BNB Chain

BNB Chain CareersEcosystem Jobs
Bize UlaşınGet Started
Bize UlaşınGet Started

BUILD Program Update- How to Query Smart Contract Gas Usage

2020.10.20  •  2 min read
Blog post image.

Binance Smart Chain BUIDL Reward Program

To further encourage the development of the dApp ecosystem on Binance Smart Chain, Binance.com has announced a new Binance Smart Chain BUIDL Reward Program. This reward program is part of the $100 million DeFi accelerator fund: up to $5 million worth of BNB will be paid back to developers in proportion to the gas used for their contracts.

HOW TO REGISTER TO BUIDL PROGRAM

GraphQL API Support

Binance smart chain(BSC) is an EVM compatible blockchain to create Dapps and digital assets. Now developers can create smart contracts and build decentralized applications atop BSC. Since day one, Bitquery.io support query any Dapp data from Binance smart chain mainnet and testnet using its GraphQL APIs.

To read more about how to investigate Binance Smart Chain transactions, click here:

Querying Binance Smart Chain (BSC) | Bitquery
This article shows how to query your Dapp data from Binance smart chain mainnet and testnet using our GraphQL APIs.

How to Track Your Smart Contract Gas Usage

Step1:

Go to https://explorer.bitquery.io/graphql

Step2:

Copy and paste the following query code into GraphQL panel.

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $addr: String, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(smartContractAddress: {is: $addr}, options: {desc: "gasValue", limit: $limit, offset: $offset}, date: {since: $from, till: $till}, external: true) {
      smartContract {
        address {
          address
          annotation
        }
      }
      gasValue
      average: gasValue(calculate: average)
      count
    }
  }
}

Replace the following addr into your contract address and the from date, then paste it into the Query Variable Panel.

{"addr":"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","from":"2020-08-01","till":null, "limit":10,"offset":0,"network":"bsc","dateFormat":"%Y-%m-%d"}

Step3:

Click on the query button, then you will see the result:

What’s next

A developer leaderboard will be available soon.

You might also be interested in:

Share