GetContractFromTransaction()

Summary

RouteTypeExample
/contract/getfromtransactionPOSThttp://apinode.credits.com/api/contract/getfromtransaction

Description

Get smart contract source code from a transaction.

Request

Request Structure

JSON
Copy

Request Parameters

transactionId: transactionId- transaction identifier in the form block_number.transaction_number

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