GetContractDetail

rpc GetContractDetail

asset_controller.GetContractDetailRequest

Get details of a specific Contract by UETR.

requests GetContractDetailRequest

asset_controller.GetContractDetailRequest

FieldTypeDescription
uetrstringA Unique End-to-end Transaction Reference, string of 36 unique characters.
verifierstringWallet verifier.

returns GetContractDetailResponse

asset_controller.GetContractDetailResponse

FieldTypeDescription
contract_typestringType of this contract
commitments repeatedCommitmentLists all fund transfers specified in the contract
createdstring[RFC3339 Timestamp] Time the contract was created
hash_presenterstring[MultibaseVerifier] that is responsible for presenting the secret
hashbytes[Sha256 Hash] Hash of the secret
expirationstring[RFC3339 Timestamp] Expiration time of the contract where all funds are returned to all participants
memostringHuman-readable memo field
log repeatedLogEntryLog of all interactions of this contract
{
  "contract_type": "Asset Swap",
  "commitments": [
    {
      "sender": "zSender1PublicKey",
      "recipient": "zRecipient1PublicKey",
      "amount": {
        "asset_code": "USD",
        "value": "1.00"
      }
    },
    {
      "sender": "zSender2PublicKey",
      "recipient": "zRecipient1PublicKey",
      "amount": {
        "asset_code": "MXN",
        "value": "1.00"
      }
    }
  ],
  "created": "2023-12-19T16:39:56-08:00",
  "hash_presenter": "zSender1PublicKey",
  "hash": "d04b98f48e8f8bcc15c6ae5ac050801cd6dcfd428fb5f9e65c4e16e7807340fa",
  "expiration": "2023-12-19T16:39:57-08:00",
  "memo": "Currency swap",
  "log": [
    {
      "sender": "zSender1PublicKey",
      "receiver": "zRecipient1PublicKey",
      "amount": {
        "asset_code": "USD",
        "value": "1.00"
      },
      "timestamp": "2006-01-02T15:04:05Z",
      "kind": "ContractPayment",
      "state": "Awaiting",
      "event": "Received promissory",
      "promissory_id": "00000000-0000-0000-0000-000000000000"
    }
  ]
}