Bitcoin Forum
October 22, 2019, 08:39:54 PM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API Creation to interact with BitcoinJ node  (Read 390 times)
Was
Member
**
Offline Offline

Activity: 75
Merit: 10

We are Satoshi.


View Profile
December 10, 2015, 10:29:34 AM
 #1

Hello All,

I am interested in creating an API to interact with a bitcoinj node to send and retrieve OP_RETURN transactions for the purpose of putting data into the blockchain.

The process I had in mind went something like this Insert text string, make string into variable(n),  convert variable to hex(x), make hex as a variable within API, push variable to BitcoinJ within OP_RETURN script.

and on the other end for interpretation: Pull txid from blockchain containing output script "OP_RETURN" with the data. convert (x) back to (n).. (HEX TO STRING) and display the original text string.

I assume the calls would be data.push and data.pull respectively.

If I want to interact with a BitcoinJ node, would the most convenient language to program the API in be Node.js?

also, How do I go about creating and issuing API Keys? 

I guess more questions to come, thanks for your help on this cool project Smiley Does anyone think this would be difficult?

We Are Satoshi.
1571776794
Hero Member
*
Offline Offline

Posts: 1571776794

View Profile Personal Message (Offline)

Ignore
1571776794
Reply with quote  #2

1571776794
Report to moderator
1571776794
Hero Member
*
Offline Offline

Posts: 1571776794

View Profile Personal Message (Offline)

Ignore
1571776794
Reply with quote  #2

1571776794
Report to moderator
The Bitcoin Forum is turning 10 years old! Join the community in sharing and exploring the notable posts made over the years.
1571776794
Hero Member
*
Offline Offline

Posts: 1571776794

View Profile Personal Message (Offline)

Ignore
1571776794
Reply with quote  #2

1571776794
Report to moderator
Was
Member
**
Offline Offline

Activity: 75
Merit: 10

We are Satoshi.


View Profile
December 10, 2015, 10:35:18 AM
 #2

As a matter of fact,

Is BitcoinJ even the easiest, best way to do something like this, and if so, is Node.js still a viable way to implement the process I just described?

Is it possible to just use Bitcoin-cli to process the calls from the API assuming it's written in Node.js?

We Are Satoshi.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!