GetContractByAddress()

Summary

RouteTypeExample
/contract/getbyaddressPOSThttp://apinode.credits.com/api/contract/getbyaddress

Description

Get smart contract source code by its address.

Request

Request Structure

JSON
Copy

Request Parameters

string: PublicKey - Smart contract address in Base58

bool: Compressed - Request compressed data True or False

Response

JSON output depends on the request type and its success.

If there’s an error, request returns to the node basic Result:

  • Success: False
  • Message:

If successful, requested information is returned.

Response Structure

JSON
Copy

Example Code

Python
C#
C++
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard