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.

Try this endpoint in your browser πŸ”—

Query Parameters

Parameter
Description

contractaddresses

the contract address , up to 5 at a time

Last updated