-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error Sending Transaction #6
Comments
So it looks like it's not able to find the inputs it needs to build the transaction. This could be caused by a couple of things, but I don't think it's your code. Because I cannot test can you do this for me? Go into your
Log |
Here are the logs:
|
okay, now at
log Pretty much going to have to keep going back until we find which variable isn't returning correctly. Or if you want to publish your repo, I can clone and take a look at it myself. But under |
Here is the utxos log. I think we're getting somewhere.
I did send 1 DGB to the address to test, so it looks like it is there. |
alright, now log |
log these variables Wondering if it's a problem with the |
console.log(utxosNoUnconfirmed); 425
console.log(targets); 426
console.log(Math.ceil(this.coin.feePerByte)); 427
console.log(extraBytesLength); 428
At least they each have a value. |
|
I didn't catch that, interesting. |
I think I might have an idea. When you logged
but then right after it gets back the utxos, it tries to format them like this:
Can you verify this? |
if you look at the documentation here, there is both |
Looks like https://digiexplorer.info is running Insight API v0.2.12 whereas FLO is currently running Insight API v5.0.0-beta.72 The DGB API doesn't return a satoshi value https://digiexplorer.info/api/addr/DNf2iFGDwfUPnSbcY8KRZBjHdTgzgrrAYm/utxo Compared to FLO https://livenet.flocha.in/api/addr/F77pykX5Dq2ju9sxdJC4a4cYZk7xNNegH5/utxo Seems it will be necessary to add a check for that and calculate EDIT: Or switch the api url in digibyte.js to this other explorer that seems to be running a newer version and does return satoshis |
I switched to a different explorer that returns satoshis. There is still an issue. The value is now present, but the When I log utxos:
When I log formattedUtxos:
|
In TransactionBuilder.js I logged
|
line And then, can you show me how you're initializing the HDMW?
I see here, you're creating a new instance of HDMW for Also log
|
console.log(utxosNoUnconfirmed);
console.log(targets);
console.log(Math.ceil(this.coin.feePerByte)); console.log(extraBytesLength); console.log(selected); This is Angular/TypeScript: Initializing wallet.
Logging this.accounts in Coin.js line 89: |
Would you be willing to send me the Digibytes network information and send me the smallest amount of Digitbyte to an address so I can test locally? |
oip-hdmw/lib/digibyte.js
Paste your DigiByte address and I'll send it over. Thanks for the help! |
I'm having trouble getting the network info from
|
I have not experienced that error. Possible to test toBitcore()?
|
outdated dependency my b pubAddr: |
Sent some DGB to that address. Hopefully that's what you intended, if not then they're probably burned🙃 |
haha yeah that's what I intended. It'll take me a while to get through this and get back to you. But for now, can you add the discover option to your wallet initilizatoin and tell me if you receive any errors?
|
Added {discover: true}, still get the same error:
Also, when I add this the transaction takes about 35 seconds to process and show error. Seems like a long time. Is there a way to operate this as a single coin wallet? |
I'm having trouble sending a transaction. I've been following the errors, but not sure where the problem is.
Here is the current error in the console:
Here is my current transaction code:
I've tried different versions of this with the same error:
I guess I'm not sure how to pass the options details correctly.
The text was updated successfully, but these errors were encountered: