Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger APIgRPC APIPackagesv2ServicesCommandCompletionServiceView on Canton Network Docs ↗

GetCompletionByHash

Ledger API›gRPC API›v2›GetCompletionByHash

com.daml.ledger.api.v2

GetCompletionByHash

RPC/com.daml.ledger.api.v2.CommandCompletionService/GetCompletionByHash

Protocol Details

ProtocolgRPC
ServiceCommandCompletionService
RPCGetCompletionByHash
Client streamNo
Server streamNo

Inputs

GetCompletionByHashRequest

Messagecom.daml.ledger.api.v2.GetCompletionByHashRequest
Client streamNo
transaction_hashbytes

Outputs

GetCompletionByHashResponse

Messagecom.daml.ledger.api.v2.GetCompletionByHashResponse
Server streamNo
accepted_completionCompletion
last_rejected_completionsrepeated Completion

com.daml.ledger.api.v2.GetCompletionByHashRequest

transaction_hashbytes

com.daml.ledger.api.v2.GetCompletionByHashResponse

accepted_completionCompletion
last_rejected_completionsrepeated Completion

com.daml.ledger.api.v2.Completion

command_idstring
statusStatus
update_idstring
user_idstring
act_asrepeated string
submission_idstring
deduplication_offsetint64
deduplication_durationDuration
trace_contextTraceContext
offsetint64
synchronizer_timeSynchronizerTime
paid_traffic_costint64
transaction_hashbytes

com.daml.ledger.api.v2.TraceContext

traceparentstring
tracestatestring

com.daml.ledger.api.v2.SynchronizerTime

synchronizer_idstring
record_timeTimestamp

History

Added3.6.1
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.CommandCompletionService/GetCompletionByHash <<'EOF'
{
  "transactionHash": "BASE64_ENCODED_BYTES"
}
EOF
OKapplication/json
OK
{
  "acceptedCompletion": {
    "commandId": "string",
    "status": "string",
    "updateId": "string",
    "userId": "string",
    "actAs": [
      "string"
    ],
    "submissionId": "string",
    "deduplicationOffset": "0"
  },
  "lastRejectedCompletions": [
    {
      "commandId": "string",
      "status": "string",
      "updateId": "string",
      "userId": "string",
      "actAs": [
        "string"
      ],
      "submissionId": "string",
      "deduplicationOffset": "0"
    }
  ]
}