<p>Your question is very broad and depends on a lot of circumstances.</p>
<p>The most straight-forward approach to any hot web wallet is building your solution on top of bitcoin-d and the existing JSON-RPC API. (<a href="https://developer.bitcoin.org/reference/rpc/" rel="nofollow noreferrer">https://developer.bitcoin.org/reference/rpc/</a>)</p>
<p>There are libraries for almost every language.(<a href="https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Languages" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Languages</a>)</p>
<ul>
<li>Run a dedicated server/VPS</li>
<li>Install bitcoin-d at your preferred version</li>
<li>Update bitcoin.conf if you want pruned, also you can set <code>walletnotify</code> here which works like a callback that will ping or run a script of your choosing whenever funds are received to the wallet.</li>
<li>Familiarize yourself with the wallet JSON RPC calls (<a href="https://developer.bitcoin.org/reference/rpc/#wallet-rpcs" rel="nofollow noreferrer">https://developer.bitcoin.org/reference/rpc/#wallet-rpcs</a>)</li>
</ul>
<p>Implement into your site as necessary.</p>

CC BY-SA 4.0
2023-03-22T00:49:51.493Z
2023-03-22T00:49:51.493Z
m1xolyd1an
<p>In stake.com for each user they generate separate bech32 address for deposit &amp; displays the deposited amount as balance in top of the navigation bar.</p>
<p>Similarly for withdraw they just ask for the amount to be withdrawn &amp; receiver address for withdrawal.</p>
<p>Currently for our setup we're generating bech32 address with publicKey &amp; privateKey using node JS. But for sending transaction to another bech32 wallet it's more complicated to calculate transaction fee &amp; sochain.io costs too much.</p>
<p>How to implement this model of deposit &amp; withdraw model for my crypto poker casino?</p>
<p><a href="https://i.sstatic.net/NHrGX.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NHrGX.png" alt="Deposit Flow in stake.com" /></a></p>

CC BY-SA 4.0
2023-03-21T10:54:14.653Z
Are you asking how you can estimate the transaction size in advance, or how you can reduce your cost for facilitating a high payment volume on Bitcoin?
Murch
<transactions><bip32-hd-wallets><utxo><javascript><merchants>
How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?
Kimi Raikkonen 9790
# How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

(Asked by: username_0 on 2023-03-21)

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar.

Similarly for withdraw they just ask for the amount to be withdrawn & receiver address for withdrawal.

Currently for our setup we're generating bech32 address with publicKey & privateKey using node JS. But for sending transaction to another bech32 wallet it's more complicated to calculate transaction fee & sochain.io costs too much.

How to implement this model of deposit & withdraw model for my crypto poker casino?

[![Deposit Flow in stake.com](https://i.sstatic.net/NHrGX.png)](https://i.sstatic.net/NHrGX.png)

**Tags:** transactions, bip32-hd-wallets, utxo, javascript, merchants

> **Comments:**
> **username_1**: Are you asking how you can estimate the transaction size in advance, or how you can reduce your cost for facilitating a high payment volume on Bitcoin?  

---

## 1 answers

### Answer by username_2 on 2023-03-22. Score: 0

Your question is very broad and depends on a lot of circumstances.

The most straight-forward approach to any hot web wallet is building your solution on top of bitcoin-d and the existing JSON-RPC API. (<https://developer.bitcoin.org/reference/rpc/>)

There are libraries for almost every language.(<https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Languages>)

* Run a dedicated server/VPS
* Install bitcoin-d at your preferred version
* Update bitcoin.conf if you want pruned, also you can set `walletnotify` here which works like a callback that will ping or run a script of your choosing whenever funds are received to the wallet.
* Familiarize yourself with the wallet JSON RPC calls (<https://developer.bitcoin.org/reference/rpc/#wallet-rpcs>)

Implement into your site as necessary.


---

