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

autominingclaimer: canClaimMiningReward err: TypeError: #11

Closed
whitmera opened this issue Apr 28, 2022 · 2 comments
Closed

autominingclaimer: canClaimMiningReward err: TypeError: #11

whitmera opened this issue Apr 28, 2022 · 2 comments

Comments

@whitmera
Copy link

whitmera commented Apr 28, 2022

Hi,

I tried running the autominingclaimer script and got a TypeError. I can probably dig into the script to figure out what is going on but thought I'd share it here..

Set custom fee? (default 0.100000 STX) … no
-------------------------
4/28/2022 3:49:01 PM
currentBlockHeight: 57957
Checking 0 unclaimed blocks...
-------------------------
block 1 of 0
block: undefined
canClaimMiningReward err: TypeError: Invalid value type. Must be a number, bigint, integer-string, hex-string, BN.js instance, or Buffer.
@whoabuddy
Copy link
Contributor

Hi @whitmera thanks for filing this! Given it is checking for "0 unclaimed blocks" I'm wondering if it was a query error with the API - do you get the same message if you try multiple times?

Also, can you share a STX address so we can research more into what the script is interpreting?

@whoabuddy
Copy link
Contributor

This script was replaced with claim-mining-reward.ts - which should be more resilient to these type of errors. Closing this one for now and if it comes up again please open a new issue.

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

2 participants