Skip to content

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

@haroondilshad

Description

@haroondilshad

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions