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

Trying to claim rewards using the SDK gives Error: Unregistered type url: /sifnode.dispensation.v1.MsgCreateUserClaim #20

Open
haroondilshad opened this issue Dec 5, 2021 · 0 comments

Comments

@haroondilshad
Copy link

Hi,
I'm trying to write a script that auto claims rewards at a certain time. To do this I have the setup:
const msgDelegate = { "typeUrl": "/sifnode.dispensation.v1.MsgCreateUserClaim", "value": { // @ts-ignore "user_claim_address": "sifAddress", "user_claim_type": DistributionType.DISTRIBUTION_TYPE_LIQUIDITY_MINING } } const result = await client.signAndBroadcast( firstAccount.address, [msgDelegate], config.fee )

This however gives the Unregistered type url: /sifnode.dispensation.v1.MsgCreateUserClaim error. The typeUrl is assumed here based on other examples from the SDK which seems to be wrong. What's the right one?

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