Contracts

Get Contract ABI for Verified Contract Source Codes

Returns the Contract Application Binary Interface ( ABI ) of a verified smart contract.

Find verified contracts on our Verified Contracts Source Code page.

https://api-xdc.blocksscan.io/api
   ?module=contract
   &action=getabi
   &address=0xff7412ea7c8445c46a8254dfb557ac1e48094391
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the contract address that has a verified source code

Get Contract Source Code for Verified Contract Source Codes

Returns the Solidity source code of a verified smart contract.

https://api-xdc.blocksscan.io/api
   ?module=contract
   &action=getsourcecode
   &address=0x5d5f074837f5d4618b3916ba74de1bf9662a3fed
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the contract address that has a verified source code

Get Contract Creator and Creation Tx Hash

Returns a contract's deployer address and transaction hash it was created, up to 5 at a time.

https://api-xdc.blocksscan.io/api
   ?module=contract
   &action=getcontractcreation
   &contractaddresses=0x5d5f074837f5d4618b3916ba74de1bf9662a3fed,0xc280ebcd651d2a0c8d4bb49151062c9eef55d370,0x0e11710aad67e7427cfbc12c353284c2e335f62c,0xd4b5f10d61916bd6e0860144a91ac658de8a1437,0xefe58dba778b3a019856ce1af627235c818a3198
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

contractaddresses

the contract address , up to 5 at a time

Last updated