Skip to content

Unable to get reward account information for registered credential #446

@sourabhxyz

Description

@sourabhxyz

What Git revision / release tag are you using?

8d5799d

Do you use any client SDK? If yes, which one?

None

Describe what the problem is?

The stake credential stake_test17qr24rjfq74e6w7xpej63k80g929wpa4edq9xpuf2hadcpcgu9vct was registered in transaction 82bb43de3ba96a80676805241d03a9f57dd06d16c0cbcaf6e6e54d99c41f2209 (pre-production testnet). Node gives following information for it:

Request:

cardano-cli query stake-address-info --testnet-magic 1 --socket-path $NODE_PREPROD/db/node.socket --address stake_test17qr24rjfq74e6w7xpej63k80g929wpa4edq9xpuf2hadcpcgu9vct

Response:

[
    {
        "address": "stake_test17qr24rjfq74e6w7xpej63k80g929wpa4edq9xpuf2hadcpcgu9vct",
        "govActionDeposits": {},
        "rewardAccountBalance": 0,
        "stakeDelegation": null,
        "stakeRegistrationDeposit": 2000000,
        "voteDelegation": null
    }
]

However, when querying via Ogmios, I don't receive any information.

Request:

curl 'localhost:1337' -H 'accept: application/json' --data '{"jsonrpc":"2.0","method":"queryLedgerState/rewardAccountSummaries","params":{"scripts":["stake_test17qr24rjfq74e6w7xpej63k80g929wpa4edq9xpuf2hadcpcgu9vct"],"keys":[]}}'

Response:

{"jsonrpc":"2.0","method":"queryLedgerState/rewardAccountSummaries","result":[],"id":null}

Maybe I am doing something wrong?

What should be the expected behavior?

Already described.

If applicable, what are the logs from the server around the occurence of the problem?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions