Questions tagged [smartcontracts]

Smart Contracts are small computer programs stored inside the Blockchain that can update themselves, store their own state, and own digital assets.

Filter by
Sorted by
Tagged with
1 vote
1 answer
197 views

Solve problems using bitcoin smart contracts

Been trying to ask this to few people on different platforms but nothing was helpful so trying here and will keep trying because I don't even know what else can I do to learn more and contribute. What ...
0 votes
0 answers
31 views

Smart Chain contract Boucing [duplicate]

I am a beginner in crypto, and I have recently invested on a platform. At the withdrawal time, I got paid via CoinBase Wallet(CW) in USDT. I could see the money in CW. Trying to withdraw, I understand ...
-1 votes
1 answer
257 views

Bitcoin smart contract for wallet income distribution based on specific conditions?

XY-problem To improve the transparency and payout automation of funds that are raised for a small SAAS project, I would like to enable (micro)-investors to invest with bitcoin whilst providing a ...
1 vote
0 answers
24 views

Scripting an escrow transaction where the arbitrator ALWAYS gets paid

I am trying to make an Escrow and Arbitration where the arbitrator always gets paid say 5% of the transaction. As in the famous escrow example here: Charlie-the-customer wants to buy a product from ...
1 vote
0 answers
34 views

Securing Digital Heritage

I would like to bequeath my digital assets in a secure way. I am the sole custodian of my bitcoins. I would like to release or pass custody conditionally, like upon death. This has to happen in a ...
9 votes
3 answers
910 views

Bitcoin and Smart Contracts

I have recently come across the features of ethereum and the idea of smart contracts. I like the concept of smart contracts however as a currency, I much prefer the bitcoin to the ether. Is there ...
0 votes
1 answer
27 views

What is the technological achievement that is needed in order to get effective SNARKs into Bitcoin?

AFAIU SNARKs may be introduced into the Bitcoin protocol as a soft fork (e.g. a new segwit version number), and this would enable many new use cases, such as verifying very advanced computations that ...
-1 votes
1 answer
29 views

can the buyers or sellers in smart contract be the miner also? [closed]

Can the buyers or sellers in the smart contracts be the miner also? Like someone be the player and also be the verifier? Thanks for your help
0 votes
1 answer
73 views

What prevent users from cheating in an HTLC contract

I was reading about HTLC and how Charlie have to create a random number and generates its SHA256 hash that is supposed to be used by Bob in the end to finalize the payment he has received from Alice. ...
1 vote
2 answers
181 views

Can smart contracts be set up on a side chain or 2nd layer solution?

I am not even personally convinced of the utility of smart contracts, but that aside, is it theoretically possible for a side chain or second layer solution to utilize/implement smart contracts? Ie is ...
0 votes
1 answer
126 views

What types of smart contracts are available for bitcoin network in 2021?

We all know that the first smart contracts appeared on the Ethereum network. As far as I know, in the Bitcoin network, smart contracts work with a limited functionality – Bitcoin uses a non-Turing ...
2 votes
1 answer
404 views

Smart contracts in bitcoin

Is it possible in bitcoin to start a smart contract preloaded with some amount of money. And if some other user is ready to pay to the smart contract a certain amount of money, the smart contract ...
5 votes
2 answers
969 views

How do I program smart contracts?

Is there a guide to learn how to program smart contracts for the Bitcoin blockchain?
0 votes
1 answer
143 views

Decoding Bitcoin transaction data

I've recently learned that some cryptocurrencies allow the users to attach additional input data to their transaction and would like to know if it's true for Bitcoin as well. For example, Ethereum ...
1 vote
2 answers
88 views

What disadvantages do 2nd layer solution/side chain smart contracts on the bitcoin network have against those on the ethereum network?

I have seen that side chains/2nd layer solutions that utilize smart contracts on the bitcoin network are feasible and in use. If the 'programmability' feature of smart contracts is available on the ...
1 vote
1 answer
79 views

Smart Contract token

Ones tokens are issued by smart contracts on a existing blockchain, for example Bitcoin and distributed to the community, who and in wich currency the transaction fees will be realized ?
3 votes
1 answer
259 views

Is it possible to build complex Apps with Bitcoin Script?

I am trying to understand what Bitcoin Script is for. Is it a programming language like Java which in principle also can be used for building complex applications like a decentral exchange or was it ...
3 votes
4 answers
619 views

Why does every "defi" thing only support garbagecoins and never Bitcoin?

I swear, I seriously feel like I've already gone insane and I can't even trust my senses at this point. I've been chewing through website after website listed as "defi", repeatedly finding ...
1 vote
2 answers
104 views

What prevent someone to not use the receiver address of one transaction as the sender in another one?

Title may be confusing you, and to be honest I am also confused how things work and I am new to this crypto world so sorry in advance if I am not using the correct words. I try to explain : Let say ...
-3 votes
1 answer
68 views

Is it cryptologically possible to create a smart contract which SAFELY gives me "altcoin interest" on my Bitcoins?

I am aware of the existing, similar questions, and I have read them and found them valuable. However, I do not feel as if I have truly got a conclusive answer on my basic question, which is: Is it ...
0 votes
1 answer
65 views

Running ERC20 contract on RSK

Disclaimer: originally asked on the ETH SE site, but advised to post here. I have been reading about RSK lately and was wondering about the compatibility and possibilities, so I wanted to ask for some ...
-4 votes
2 answers
111 views

Is it possible to get a monthly "fiat/altcoin allowance" from simply "locking" your Bitcoins in a pure smart contract?

Let's suppose that Mr. John Doe has somehow managed to accumulate 10 BTC. He holds on to them for dear life as it's his one and only savings/lifeline. He has essentially zero fiat money. Only a bank ...
-1 votes
1 answer
111 views

Examples and Tutorial on how to use lightweight smart contracts on Ardor?

I've just read about Ardor's lightweight smart contracts: https://medium.com/coinmonks/lightweight-contracts-b738b6e29377 Is there an example and tutorial of how to make use of these smart contracts ...
-1 votes
1 answer
64 views

What will happen on creating a transaction with negative amount?

Bitcoin in short is a public ledger guided by consensus of its nodes. In theory, if there is no validation of transaction amount, if we were to create a transaction with negative amount, that would ...
5 votes
3 answers
1k views

What are some interesting applications of Taproot "smart contracts"?

From a strictly technical perspective, MAST makes a lot of sense. However, understanding it in the context of Taproot/Tapscript does require prior knowledge in Merkle Trees and hash functions. What ...
1 vote
1 answer
59 views

Decode script return different value from my relative timelock

I want to lock a UTXO for 90 days. My Binary is: 00000000010000000011101101010011 And my sequence is: 533B40 When I decode the witness script with bitcoin-cli decodescript I can see 4209491. Where ...
13 votes
2 answers
943 views

Why did the lightning network implement a gossip protocol?

As pointed out by many lightning developers in the past (e.g. Rusty's 1 million channel challenge) the gossip protocol is quite noisy and a part of the BOLTs causing many engineering challenges. ...
0 votes
0 answers
21 views

The general principle of smart contracts for bitcoin [duplicate]

As far as I know, there is the possibility of realizing smart contracts using the Bitcoin blockchain. Explain how a smart contract works on the Bitcoin blockchain. I am interested in the general ...
0 votes
1 answer
67 views

Do payment channels have an address? And where are their transactions actually being written to?

In the Lighting Network or with micropayment it's possible to open up payment channels that basically work like a smart contract. At the beginning, the channel is funded by one or two parties with ...
-1 votes
1 answer
234 views

Beginner questions about Smart Contracts (saving the hash)

I am new here and to Blockchain technology, so I have some tricky questions for you :). If I want to save data, for example transactions between two, on the Blockchain. Is it possible to save only ...
1 vote
1 answer
72 views

Simple, default, "hello world" smart contract for an auction? (winner wins, all the rest gets refunded)

I recently read an article: https://medium.com/@jimmysong/the-truth-about-smart-contracts-ae825271811f Because of a lot of centralized marketing from Ethereum, there’s a mistaken belief that Smart ...
1 vote
1 answer
185 views

Could Taproot or Graftroot enable the execution of complex scripts?

From my understanding, Taproot uses a Merkle Tree structure whose root represents the outcome of a script. That representation is in the form of a signature that may unlock the inputs associated with ...
4 votes
3 answers
3k views

How to store private data in blockchain and smart contract

Following my previous question on this topic Is there a way to store and share a private key through blockchain?, I might have a solution but I would like to improve the process. Image that A is the ...
5 votes
1 answer
221 views

When does Ardor smart contracts come into effect and how does it work compared to Ethereum, EOS, and Lisk?

Ardor announced they are launching smart contracts on their system and how does it work compared to the other platforms like Ethereum, EOS, and Lisk?
0 votes
2 answers
105 views

Watch a BitCoin account for incoming payments

I want to watch a set of BitCoin addresses and be notified (preferably by email) when they receive a payment. I prefer me not to write my own software for this and not to install it on my own server, ...
0 votes
1 answer
143 views

Size of Blockchain for huge smart contracts database

Let's say I want to use smart contracts for huge collection of data. Since it will be distributed so downloading on every participant computers isn't this a huge problem ?
4 votes
5 answers
5k views

Is it possible to schedule function calls to an Ethereum smart contract? [closed]

I am wondering - is it possible to schedule or somehow trigger function calls to an Ethereum smart contract based on the current block height or timestamp? This would involve some pre-payment of gas ...
2 votes
1 answer
62 views

Is it posible to create a transaction output that can either be reddemed by privK of Addr A or by privK of Addr B AFTER certain blockheight?

I am thinking about how to secure your Bitcoin savings. One idea I had was to create sort of a "backup" address B for an address A which stores the bitcoins. So what I want to achieve is that you ...
1 vote
0 answers
44 views

Are there any smart contract systems that are self executing without the need to have an external process to initiate a smart contract? [closed]

Doing some research on smart contract systems. I want to create a self executing smart contract that can monitor external data like say the weather from an api. Currently ethereum and other smart ...
3 votes
1 answer
80 views

Ardor Lightweight Contracts: (Almost) trustless way with new Phased Transaction type?

I asked that question on Bitcointalk, but got no response so far. As Lior has proposed to make Stackexchange the main medium of exchange about Ardor I'm asking here. As I read in the FAQ, the main ...
4 votes
1 answer
151 views

Aborting a three-way swap

Suppose Alice has 1 BTC, Bob has 1 LTC, and Carol has 1 NMC. Alice wants NMC for BTC, Bob wants BTC for LTC, and Carol wants LTC for NMC. Assume each cryptocurrency has the same value and can be 1-to-...
0 votes
1 answer
2k views

Template of a DAO?

Where can I find a simple smart contract template of a DAO? not The DAO, but a Decentralized Autonomous Organization, rules, codes, bylaws, responsibilities, etc.
2 votes
1 answer
240 views

How is a node selected to run Smart Contract in Ethereum

A node that runs a smart contract will be paid with GAS. How is this node selected? I guess this node should be trustworthy. Or multiple nodes are running the same smart contract just to make sure ...
1 vote
0 answers
246 views

Bitcoin bet on price of Brent crude

Is there a place where I can bet on the price of Brent crude oil? For example, I bet 1 BTC and: if the oil price increases by 1%, I will lose the bet. if the oil price decreases by 1%, I will double ...
2 votes
1 answer
3k views

Token vs contract - are they the same?

The Ethereum ERC20 token is also the contract. The token can never live without the contract. The name of the contract is the name of the token. In the code, the keyword is contract and not token. I ...
1 vote
1 answer
165 views

ETH smart contracts v/ traditional

total newb here. I purchased some ETH on an exchange which uses smart contracts, it is in that exchange wallet. I have another wallet which does not support smart contracts, only "traditional" ETH ...
0 votes
1 answer
55 views

Reveal a result after block height

So imagine we have 5 different parties, all of these parties test if a particular thing is true or false over the course of 24 hours. The network needs to come to a consensus about the majority ...
1 vote
1 answer
41 views

Purpose of token standard interfaces when implement smart contract

I am studying to write smart contract and see that there are some token standards such as ERC20. My question is: what is the purpose of those standards ? Why do we need to add those interface to our ...
2 votes
0 answers
216 views

Is it possible to create a Dapp on top of Bitcoin?

Is it possible to create a dapp on top of bitcoin similar to how it can be done with ethereum? Can it be just as capable as ethereum?
0 votes
2 answers
93 views

Does blockchain have any value if you trust all nodes?

If we are designing a new project or application whatever it is, and you can trust all nodes, should we still consider blockchains in the architecture? I saw this video of IBM and I was wondering ...