<p>Sure. Here’s a real world example for you: Greenwallet has a wallet type called “multisig-shield” where your wallet is a 2/2 multisig with one key on your phone/computer and the other key is on a server that blockstream runs. You can turn on MFA for your wallet. So then what happens is when you want to make a spend, your phone/computer sends the transaction to the blockstream server, and if you have passed an MFA check, then the server signs the transaction. If you haven’t done the MFA challenge, then the server refuses to sign.</p>
<p>You can write your own signing servers/oracles that can decide to sign or not sign based on whatever logic or rules you want!</p>

CC BY-SA 4.0
2022-02-27T02:46:20.650Z
Oh thank you so much!! Yeah I was imagining something like this. What kind of tools could be useful to build an oracle like this?
Davd Rzz
CC BY-SA 4.0
2022-02-27T16:48:52.453Z
can be pretty much whatever you want. At the end of the day, you need to be able to have users send you a psbt, you need to evaluate it against whatever policy/logic you want, then sign it (or not) and send back the psbt. So a reasonable toolkit could be something like https://bitcoindevkit.org to write your signing oracle and then host it as a web-app or a serverless app or whatever.
Alex
CC BY-SA 4.0
2022-02-26T21:17:57.810Z
2022-02-26T21:17:57.810Z
Alex
<p>I'm not that technical, but is it possible to run a script that automatically signs a Bitcoin transaction once some conditions are met? For example, a date -I understand that with Bitcoin smart contracts you can play with dates via block height, but what if you are looking for a precise date-, or a fiat payment gateway, or any kind of external input (or the absence of it).</p>

<private-key>
Automatic Bitcoin signer
Davd Rzz
# Automatic Bitcoin signer

(Asked by: username_0 on 2022-02-25)

I'm not that technical, but is it possible to run a script that automatically signs a Bitcoin transaction once some conditions are met? For example, a date -I understand that with Bitcoin smart contracts you can play with dates via block height, but what if you are looking for a precise date-, or a fiat payment gateway, or any kind of external input (or the absence of it).

**Tags:** private-key


---

## 1 answers

### Answer by username_1 on 2022-02-26. Score: 1

Sure. Here’s a real world example for you: Greenwallet has a wallet type called “multisig-shield” where your wallet is a 2/2 multisig with one key on your phone/computer and the other key is on a server that blockstream runs. You can turn on MFA for your wallet. So then what happens is when you want to make a spend, your phone/computer sends the transaction to the blockstream server, and if you have passed an MFA check, then the server signs the transaction. If you haven’t done the MFA challenge, then the server refuses to sign.

You can write your own signing servers/oracles that can decide to sign or not sign based on whatever logic or rules you want!

> **Comments:**
> **username_0**: Oh thank you so much!! Yeah I was imagining something like this. What kind of tools could be useful to build an oracle like this?  
> **username_1**: can be pretty much whatever you want. At the end of the day, you need to be able to have users send you a psbt, you need to evaluate it against whatever policy/logic you want, then sign it (or not) and send back the psbt. So a reasonable toolkit could be something like https://bitcoindevkit.org to write your signing oracle and then host it as a web-app or a serverless app or whatever.  

---

