Bitcoin Forum
May 10, 2024, 10:59:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sample code to transfer funds using bcoin  (Read 179 times)
Jessica432 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
October 09, 2018, 12:58:42 PM
 #1

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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715381955
Hero Member
*
Offline Offline

Posts: 1715381955

View Profile Personal Message (Offline)

Ignore
1715381955
Reply with quote  #2

1715381955
Report to moderator
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
October 10, 2018, 12:19:19 PM
 #2

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).

seoincorporation
Legendary
*
Offline Offline

Activity: 3150
Merit: 2933


Top Crypto Casino


View Profile
October 13, 2018, 03:23:51 PM
 #3

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!