Skip to main content
POST
/
Agent
/
Legal
/
GetContract
Get Contract
curl --request POST \
  --url https://{host}/Agent/Legal/GetContract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contractId": "<string>",
  "format": "<string>"
}
'
{
  "Contract": {}
}

Overview

Allows the client to get a Smart Contract. If the Contract belongs to someone else, and the client is not authorized access to the Contract, an error will be returned. Note: Neurons are federated. You can get contracts created on other neurons through this API on the neuron you have your account on. Federated means that the neurons interconnect to share authorized information, when requested, and permitted.

Authentication

Requires a valid JWT bearer token.

Notes

This endpoint uses the request schema notation described in Pattern matching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
contractId
string
required
format
string

Response

200 - application/json

Success

Contract
object
required