<p>I am new to using Bitcoin and the Lightning Network.</p>

<p>I was looking at this: <a href="https://bitcoin.org/en/developer-reference#bitcoin-core-apis" rel="nofollow noreferrer">https://bitcoin.org/en/developer-reference#bitcoin-core-apis</a>  I saw REST APIs as well but did not seen any functions for POST, DELTE, etc. Would be realistic to try to make a REST APIs using these functions. One should not have to worry about authorization since the Blockchain is public - right? I wanted to create functionality that would be called when openning/closing a Channel on the Blockchain from the Lightning Network.</p>

<p>Also, I was hoping that in creating a BTCD daemon (and synching it with the Blockchain), one could perhaps have their transactions commit faster. But, it looks as though this can only be done by miners(?) Is my understanding correct?</p>

<p>TIA</p>

CC BY-SA 3.0
2018-04-19T06:44:50.477Z
I can't speak too much about the lightning network, but you should be able to build a REST endpoint yourself by utilizing the Bitcoin-Core wallet and the JSON-RPC calls as you referenced. In terms of committing transactions, I assume you want fast confirmation time. A natural way would be paying higher fees, which incites miners to include your transaction sooner. You could potentially pay miners directly to do that, but I found that a little bit unreliable, plus you just can't get away with no extra cost
Will Gu
CC BY-SA 3.0
2018-04-19T20:37:41.603Z
Thanks a lot for your response. Should I be a miner? The thought would be  add "open/close" transactions to my block, "solve the puzzle" for it and then place it out there on the Blockchain - does this make sense? This way, one would not have to depend upon another miner to incorporate transactions.
Casey Harrils
CC BY-SA 3.0
2018-04-19T20:42:10.347Z
You don't have to be a miner. All you need is just to broadcast your transaction. As I said, faster confirmation time is achieved by either paying higher fees or pay a miner to include your transaction asap. On a regular computer, you'll probably _never_ be able to miner a block, so becoming a miner is pretty much pointless.
Will Gu
CC BY-SA 3.0
2018-04-20T00:07:41.567Z
Thanks again. Out of curiosity, would the confirmation time be much faster on the "testnet" (the testing Blockchain)?
Casey Harrils
<bitcoin-core><api>
Using bitcoin-core RFCs to create REST APIs
Casey Harrils
# Using bitcoin-core RFCs to create REST APIs

(Asked by: username_0 on 2018-04-18)

I am new to using Bitcoin and the Lightning Network.

I was looking at this: <https://bitcoin.org/en/developer-reference#bitcoin-core-apis> I saw REST APIs as well but did not seen any functions for POST, DELTE, etc. Would be realistic to try to make a REST APIs using these functions. One should not have to worry about authorization since the Blockchain is public - right? I wanted to create functionality that would be called when openning/closing a Channel on the Blockchain from the Lightning Network.

Also, I was hoping that in creating a BTCD daemon (and synching it with the Blockchain), one could perhaps have their transactions commit faster. But, it looks as though this can only be done by miners(?) Is my understanding correct?

TIA

**Tags:** bitcoin-core, api

> **Comments:**
> **username_1**: I can't speak too much about the lightning network, but you should be able to build a REST endpoint yourself by utilizing the Bitcoin-Core wallet and the JSON-RPC calls as you referenced. In terms of committing transactions, I assume you want fast confirmation time. A natural way would be paying higher fees, which incites miners to include your transaction sooner. You could potentially pay miners directly to do that, but I found that a little bit unreliable, plus you just can't get away with no extra cost  
> **username_0**: Thanks a lot for your response. Should I be a miner? The thought would be  add "open/close" transactions to my block, "solve the puzzle" for it and then place it out there on the Blockchain - does this make sense? This way, one would not have to depend upon another miner to incorporate transactions.  
> **username_1**: You don't have to be a miner. All you need is just to broadcast your transaction. As I said, faster confirmation time is achieved by either paying higher fees or pay a miner to include your transaction asap. On a regular computer, you'll probably _never_ be able to miner a block, so becoming a miner is pretty much pointless.  
> **username_0**: Thanks again. Out of curiosity, would the confirmation time be much faster on the "testnet" (the testing Blockchain)?  

---

## 0 answers

