Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UTXORPC] ReadUtxos response for a utxo without a datum is showing some data #251

Open
nelsonksh opened this issue Sep 13, 2024 · 0 comments

Comments

@nelsonksh
Copy link

grpcurl -plaintext -d '{"keys": [{"hash": "eRMJtrD6zICz+olugwmZ577zIepSefa+2+EnnuHp1K4="}]}' localhost:50051 utxorpc.v1alpha.query.QueryService.ReadUtxos

Result:

{
  "items": [
    {
      "nativeBytes": "glg5AJ1hk0QlxWy+JWCbQgZaNWvZunvonoqgIo6R7aam1QLMzKKDJ/IuoQPXLLQ9gK4z7mgkNrZADfm0GgCYloA=",
      "txoRef": {
        "hash": "eRMJtrD6zICz+olugwmZ577zIepSefa+2+EnnuHp1K4="
      },
      "cardano": {
        "address": "AJ1hk0QlxWy+JWCbQgZaNWvZunvonoqgIo6R7aam1QLMzKKDJ/IuoQPXLLQ9gK4z7mgkNrZADfm0",
        "coin": "10000000",
        "datum": {
          "hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
        }
      }
    }
  ],
  "ledgerTip": {
    "slot": "70561586",
    "hash": "Lwm9Lt8yxKIx3gYlCLq80rxdbDXkEheyrHEYlm+0040="
  }
}

Expected:

{
  "items": [
    {
      "nativeBytes": "glg5AJ1hk0QlxWy+JWCbQgZaNWvZunvonoqgIo6R7aam1QLMzKKDJ/IuoQPXLLQ9gK4z7mgkNrZADfm0GgCYloA=",
      "txoRef": {
        "hash": "eRMJtrD6zICz+olugwmZ577zIepSefa+2+EnnuHp1K4="
      },
      "cardano": {
        "address": "AJ1hk0QlxWy+JWCbQgZaNWvZunvonoqgIo6R7aam1QLMzKKDJ/IuoQPXLLQ9gK4z7mgkNrZADfm0",
        "coin": "10000000",
        "datum": {}
      }
    }
  ],
  "ledgerTip": {
    "slot": "70561662",
    "hash": "ZH0Ftvxp2jFcrfVvUY3EyIvnyvjbXoSarD7+FdZyBVw="
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant