GetContractFromTransaction()

Summary

Route
Type
Example

/contract/getfromtransaction

POST

http://176.113.80.7:62000/api/contract/getfromtransaction

Description

Get smart contract source code from a transaction.

Request

Request Structure

// Parameters common for all requests

"transactionId": "Decimal_String", // Smart contract address in Base58
"compressed": "boolean value" // Indicator of data compression true or false

}

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

Example Code

Python

C++

C#

Last updated