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?