Transaction cost variations in one contract vs multiple contracts

0 votes
Let's say I want to make a Blockchain application having three entities - Owner, Tenant and some object to be a Renter. My question is - Should I make a single universal contract for all the three or do i need to make separate contracts for each of the entities?

While working on Remix IDE I observed that the total transaction cost for 3 contracts is lower than when i include all into one.
Apr 19, 2018 in Blockchain by Johnathon
• 9,090 points
785 views

1 answer to this question.

0 votes

You are free to choose whatever works for you. It is preferred to use different contracts solely coz of the fact that it would be a huge problem if one makes a mistake in one contract but deployed all 3 as one. And as you said, 3 contracts are even cheaper, then you have your answer!

Basically it's like uniting 3 web application into one monolith application vs having couple of services. A service always wins!

answered Apr 19, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

Where are the transaction details of a smart contract is written in Ethereum?

First ques:where in the blockchain is a ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
812 views
0 votes
1 answer

How to call function in one contract from another contract in private blockchain?

Please check whether you have byzantiumBlock: 0 in your ...READ MORE

answered Oct 1, 2018 in Blockchain by digger
• 26,740 points
862 views
0 votes
0 answers
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
1,414 views
+1 vote
4 answers

How to estimate the cost for deploying smart contract on mainnet?

Since you have already deployed the contract ...READ MORE

answered Apr 10, 2018 in Blockchain by Shashank
• 10,400 points
15,586 views
0 votes
1 answer

Transaction Id in Bitcoin Blockchain

The TransactionId comes from sending the coin. ...READ MORE

answered Jul 13, 2018 in Blockchain by Christine
• 15,790 points
1,013 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP