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.xdcscan.io/api
   ?module=contract
   &action=getabi
   &address=0xff7412ea7c8445c46a8254dfb557ac1e48094391
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

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.xdcscan.io/api
   ?module=contract
   &action=getsourcecode
   &address=0x5d5f074837f5d4618b3916ba74de1bf9662a3fed
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

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.xdcscan.io/api
   ?module=contract
   &action=getcontractcreation
&contractaddresses=xdcc5e79ea2490822af066959bf71873cc26a60dbad,xdcd80011c69f2a8d4e2f4826abb6367bf159b41a59,xdc051665f2455116e929b9972c36d23070f5054ce0,xdc2a9f896660e802c59a3178b2e8cb7fbaccc04e86,xdc8210c0634ab8f273806e4b7866e9db353773c44b&apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

contractaddresses

the contract address , up to 5 at a time

Last updated