blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
904 stars 517 forks source link

BLOCKCHAIN SEND BTC MY WALLET -> OTHER WALLET #489

Open gutofurlan opened 3 years ago

gutofurlan commented 3 years ago

Hello, I need to send balance from my wallet to another wallet via api rest, how can I do it? I found this data https://www.blockchain.com/api/blockchain_wallet_api but it uses localhost as a base, but I would like to access it via the blockchain api, would it be possible? Thanks

waqas61 commented 3 years ago

Yes Make outgoing payments api call

http://localhost:3000/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$address&amount=$amount&from=$from&fee=$fee

Run Wallet service on you server

gutofurlan commented 3 years ago

ok but if i access a url (https://blockchain.info/merchant/$guid/) other than localhost, does it work?

waqas61 commented 3 years ago

No you have to start service on your server By installing npm install -g blockchain-wallet-service

waqas61 commented 3 years ago

If you are having issue we can fix it via ZOOM session

gutofurlan commented 3 years ago

Ok, I understand that I can only use localhost, but how can I upload it to production? Since my application is in php and I will make a request for this other node server? Does the blockchain itself not provide the service?

waqas61 commented 3 years ago

You just need to start blockchain-wallet-service and make curl requests from php

gutofurlan commented 3 years ago

OK but how can I start the service in production mode? I cannot guarantee that my server after a reboot will upload all of this ... Is there a deployment for production? Ex. Vue JS when running the deploy it turns into html files that we just put into production, but before inheriting the npm run serves that a server goes up on port 8000.

waqas61 commented 3 years ago

Please have zoom session to fix it

gutofurlan commented 3 years ago

My zoom is not work, please access link: https://meet.google.com/goc-xaho-vbr

ralphsunny22 commented 3 years ago

No you have to start service on your server By installing npm install -g blockchain-wallet-service

yes, can i connect with you. Am having same issue

mmt78 commented 3 years ago

Hi, I am getting the error below when I try to send money via API: The requested URL returned error: 500 Internal Server Error

waqas61 commented 3 years ago

Hi, I am getting the error below when I try to send money via API: The requested URL returned error: 500 Internal Server Error

Did you check ? Blockchain service is running or not

mmt78 commented 3 years ago

Hi, I am getting the error below when I try to send money via API: The requested URL returned error: 500 Internal Server Error

Did you check ? Blockchain service is running or not

Of course it is running.

waqas61 commented 3 years ago

I have to check the via Zoom

mmt78 commented 3 years ago

I have to check the via Zoom

https://github.com/blockchain/service-my-wallet-v3/issues/506 Please check here first.