rpc GetContractDetail
GetContractDetail
asset_controller.GetContractDetailRequest
asset_controller.GetContractDetailRequest
Get details of a specific Contract by UETR.
requests GetContractDetailRequest
GetContractDetailRequest
asset_controller.GetContractDetailRequest
asset_controller.GetContractDetailRequest
returns GetContractDetailResponse
GetContractDetailResponse
asset_controller.GetContractDetailResponse
asset_controller.GetContractDetailResponse
Field | Type | Description |
---|---|---|
contract_type | string | Type of this contract |
commitments repeated | Commitment | Lists all fund transfers specified in the contract |
created | string | [RFC3339 Timestamp] Time the contract was created |
hash_presenter | string | [MultibaseVerifier] that is responsible for presenting the secret |
hash | bytes | [Sha256 Hash] Hash of the secret |
expiration | string | [RFC3339 Timestamp] Expiration time of the contract where all funds are returned to all participants |
memo | string | Human-readable memo field |
log repeated | LogEntry | Log 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"
}
]
}