Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Jessica432 on October 09, 2018, 12:58:42 PM



Title: Sample code to transfer funds using bcoin
Post by: Jessica432 on October 09, 2018, 12:58:42 PM
I am running bcoin node. I wanted to get a sample code to transfer bitcoins from one bitcoin account to another using javascript and bcoin. The inputs are sender's private key and address, receiver's address, and may be a change address. I will really appreciate any help.


Title: Re: Sample code to transfer funds using bcoin
Post by: bob123 on October 10, 2018, 12:19:19 PM
I don't exactly understand what you want from us..

If the inputs are the senders priv key, address, change address and receivers address, simply call the function with all of these parameters.

For examples (code snippets), look at github (e.g. https://github.com/bcoin-org/bcoin/blob/master/docs/Examples/create-sign-tx.js (https://github.com/bcoin-org/bcoin/blob/master/docs/Examples/create-sign-tx.js)).


Title: Re: Sample code to transfer funds using bcoin
Post by: seoincorporation on October 13, 2018, 03:23:51 PM
Hello Jessica.

Please take a look at the bcoin docs, there you will find all the information you need.

http://bcoin.io/docs/

If you can't find the right info you are searching, then contact us by this channel, but you should ask google first, he is an excellent guide.