简体   繁体   中英

How to use node.js code inside php file/script

I am very new in node.js , I am creating a bitcoin application in php and I need to use Bitgo API for creating wallet address and bitcoin transfer.

Bitgo have there API in node.js only. Please help me to call node.js API inside my php code.

Here is the API listed.

https://www.bitgo.com/api/?javascript#create-address

On user signup I need to execute the Bitgo API for creating addresses inside wallet. Bitgo returns the wallet address in response and I have to store in my database.

Thanks in advance!

The BitGo Express REST API is a lightweight service for developers that want to take advantage of BitGo but are developing in a language without a native BitGo SDK.

BitGo Express runs as a service in your own datacenter, and handles the client-side operations involving your own keys, such as partially signing transactions before submitting them to BitGo. This ensures your keys never leave your network, and are never seen by BitGo. BitGo Express can also proxy the standard BitGo REST APIs, providing a unified interface to BitGo through a single REST API.

To use BitGo Express:

Install BitGoJS Run the following command in the bin directory: ./bitgo-express --debug --port 3080 --env test --bind localhost

Make all BitGo REST API calls to the machine on which bitgo-express is running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM