Skip to main content

Contract endpoint

Note: Please note that /contracts/:id has been deprecated.

Method: GET

/gateway/contract?txId=<txId>&srcTxId=<srcTxId> - returns contract and source transactions informations. By default original source transaction id is loaded. However, one can indicate another source transaction id as a parameter (when e.g. contract has been evolved, more about evolving process here).


  1. txId - id of the contract
  2. srcTxId [optional] - id of the transaction with source code for the contract


  1. contract
  2. contract with source