Skip to main content

๐ŸŽฏContracts 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;

//inject
private readonly IBscScanContractsService _bscScanContractsService;

๐Ÿ’ฐGet Contract ABI for Verified Contract Source Codesโ€‹

Returns the contract Application Binary Interface ( ABI ) of a verified smart contract.โ€‹

//Sample Request ๐ŸŽ

var contractAbi = await _bscScanContractsService
.GetContractApplicationBinaryInterfaceAsync("0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82");

๐Ÿ’ฐGet Contract Source Code for Verified Contract Source Codesโ€‹

Returns the Solidity source code of a verified smart contract.โ€‹

//Sample Request ๐ŸŽ

var contractSourceCode = await _bscScanContractsService
.GetContractSourceCodeAsync("0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82");