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
4
votes
1answer
194 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 ...
1
vote
0answers
33 views

I just launched a bep20 clone, but transactions looks confusing [closed]

I have made a clone but my transactions does not read the same way as the original contract that I cloned from. Every sell transactions is divided into 3 sections, and it shows 8 tokens being ...
2
votes
4answers
580 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
votes
1answer
62 views

How exactly do you “list” available smart contracts that you can enter into?

I've spent a huge amount of time and effort over the years learning about Bitcoin and other cryptocurrencies. I'm very frustrated about how, even after I understand something, it seems to be something ...
1
vote
2answers
60 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
1answer
53 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
1answer
34 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
3answers
89 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
1answer
78 views

Can somebody please explain “defi” and “Bitcoin lending” to me as if I were 8 years old? [duplicate]

Suppose I own a few Bitcoins. Yay. Super lucky me. It's just that I can't actually spend them, or I won't have them anymore. Enter "defi" and "Bitcoin lending"... allegedly. I've ...
-1
votes
1answer
45 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 ...
1
vote
1answer
42 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 ...
0
votes
1answer
116 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
0answers
20 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 ...
4
votes
3answers
807 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 ...
0
votes
1answer
43 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
1answer
189 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
1answer
53 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 ...
13
votes
2answers
573 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. ...
5
votes
1answer
196 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
2answers
92 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, ...
1
vote
1answer
52 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 ?
2
votes
1answer
45 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
0answers
29 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
1answer
65 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 ...
1
vote
1answer
127 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 ...
0
votes
1answer
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.
1
vote
1answer
189 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 ...
0
votes
0answers
20 views

Hash Time Locked Contract (HTLC) using bitcoin-qt [duplicate]

Is it possible to manually create a Hash Time Locked Contract using the bitcoin-qt command line? I have dabbled with manually creating createrawtransaction / sendrawtransaction using the bitcoin-qt ...
2
votes
1answer
1k 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
votes
1answer
101 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
vote
1answer
24 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 ...
4
votes
1answer
114 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-...
1
vote
0answers
188 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
1answer
42 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 ...
0
votes
2answers
76 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 ...
1
vote
1answer
111 views

Smart Contracts on Bitcoin's blockchain

Will projects build on top of Ethereum's blockchain be able to transit to Bitcoin's blockchain when the smart contract platform is up and running?
0
votes
1answer
220 views

Questions about blockchains, network trust and why becoming a node? [closed]

everyone, I'm a software developer and I'm striving to understand the concepts behind blockchain and the projects running on them. I'm not sure if this is the correct place to ask these questions, ...
0
votes
1answer
39 views

While creating new crypto using fork need to generate smart contract? [closed]

I have 2 questions for creating nee crypto currency using fork. 1.) I have created one new crypto coin which is called mindcoin, now should i generate smart contract for deployment my currency in ...
0
votes
1answer
78 views

Smart Contract Execution

If I have a Blockchain which consists of few smart contracts. Let's say that the Blockchain consists of 2000 blocks. When a new block is added to the Blockchain then does the smart contract runs on ...
1
vote
1answer
141 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 ...
1
vote
1answer
137 views

How does the Smart Contracts work in a blockchain

I am relatively new to blockchain technology, and my only knowledge is relative to the way bitcoin blockchain works. I know it is based on mining and and transfer of value that gets scarce whenever ...
2
votes
2answers
76 views

Conditional based Crypto based on Smart Contracts

Is it possible to store an encrypted message in the blockchain that reveals itself only when a particular condition is met? I think that the conditional disclosure can be done with Smart Contracts, ...
1
vote
1answer
223 views

Are Ethereum Tokens issued in an ICO similar to stocks on a stock market? [closed]

Are Ethereum Tokens issued in an ICO similar to stocks on a stock market? In which ways are they similar, and in which ways are they not? To give some background to my question. I just joined an ICO ...
3
votes
3answers
2k 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 ...
0
votes
0answers
47 views

Why can't smart contract code just be stored on an immutable blockchain an just have another system execute this code?

I understand that a smart contract is just a fancy term for code that just does something with accounts in an immutable blockchain. A good example is, if you wanted to send your friend 1 coin a week ...
6
votes
1answer
588 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 ...
2
votes
1answer
300 views

What is the status of smart contracts in bitcoin?

Are contracts described here already available for use? This source claims that "Ethereum style contracts" will be available in June. Is this correct? How are Ethereum style contracts different from ...
4
votes
3answers
100 views

bitcoin smartcontract feature

I am a noob, so please bear with me. I'm wondering whether the Bitcoin Core team plans to integrate a smart contract feature evolving the Bitcoin scripting language in a more sophisticated one in the ...
5
votes
2answers
931 views

How do I program smart contracts?

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

Does bitcoin have the potential to be subject to a hard fork where miners are forced to choose which fork they will accept, like Etherum?

Some background (Taken from Quartz): Ethereum is similar to bitcoin, but it also supports smart contracts, agreements written in computer code that execute automatically when conditions are met....