Transaction not working using insight-api-dash

Mohd Afzal

New Member
Sep 19, 2017
16
0
1
32
Hello

I am new to Dash and implementing transaction functionality where the user can send dash from one address to another address.
As a developer i am using insight-api-dash api for it.
I am unable to perform this task as i am very new to this dash.

Please help me out .
It will be great help for me.

Thanks
 

alex9

Member
Feb 4, 2017
57
7
48
Please tell on what exactly you are stuck or what exactly causes the difficulties?
Using insight-api-dash you can send a signed raw transaction. But you can't create and sign transaction with this api.
 

Mohd Afzal

New Member
Sep 19, 2017
16
0
1
32
Thanks for replying my query.

Actually, I need to send dash money to any dash address .But I am unable to perform this activity and not able to find appropriate API to perform this task.
If there is any other API doing this task please let me know.

Please help me out as I need to complete this work as soon as possible.

Thanks
 

Mohd Afzal

New Member
Sep 19, 2017
16
0
1
32
Yes, that's the perfect answer I was looking for, I also found dash-cli is the nice idea to go on with.
For testing purpose, I am installing testnet .It's been hours since it is getting synchronized and from 1 hour it is saying No Block Source available and bar showing 14 hours behind.
I am attaching screenshot of my dash wallet please have a look if it is getting any error.

Thanks
 

Attachments

alex9

Member
Feb 4, 2017
57
7
48
Delete file "peers.dat" in testnet dir and try again.
If that doesn't help try "Tools" -> "Wallet Repair" -> "Rebuild index".
 

alex9

Member
Feb 4, 2017
57
7
48
Seems like testnet now unavailable for 0.12.1.x. Tried myself and stuck on 2 MB block... Probably they testing 0.12.2.
 

alex9

Member
Feb 4, 2017
57
7
48
regtest=1 in dash.conf should work. Check location of your dash.conf file. Must be in ~/.dashcore/
 

alex9

Member
Feb 4, 2017
57
7
48
Oh.. please use google search. It seems that you did not even try to learn it yourself. Just by making a search "bitcoin regtest" or "dash regtest" you will find all necessary answers ("bitcoin regtest" will find you even good examples of how to use it). Please respect the time of other people - do your own research before asking on forums.
 

Mohd Afzal

New Member
Sep 19, 2017
16
0
1
32
Oh.. please use google search. It seems that you did not even try to learn it yourself. Just by making a search "bitcoin regtest" or "dash regtest" you will find all necessary answers ("bitcoin regtest" will find you even good examples of how to use it). Please respect the time of other people - do your own research before asking on forums.
ok thanks for your precious time and really happy that you helped me out .
Just one question is that the working of dash is same as bitcoin ?
 

alex9

Member
Feb 4, 2017
57
7
48
Yes. dash-cli will work like bitcoin-cli, many commands will be the same. You can run "dash-cli help" to see all rpc commands for dash. "dash-cli help some_command" will show you command-specific help about its usage.
 

Mohd Afzal

New Member
Sep 19, 2017
16
0
1
32
Yes. dash-cli will work like bitcoin-cli, many commands will be the same. You can run "dash-cli help" to see all rpc commands for dash. "dash-cli help some_command" will show you command-specific help about its usage.
yes, thank you so much.
You are awesome.

Thanks
 

Dashmaximalist

Active Member
Mar 16, 2017
1,008
247
133
38
maptags.in
Please tell on what exactly you are stuck or what exactly causes the difficulties?
Using insight-api-dash you can send a signed raw transaction. But you can't create and sign transaction with this api.
https://www.npmjs.com/package/bitcore-dash installing failing


npm ERR! code ELIFECYCLE

npm ERR! errno 22

npm ERR! [email protected] preinstall: `./scripts/download`

npm ERR! Exit status 22

npm ERR!

npm ERR! Failed at the [email protected] preinstall script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in: