You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: