How to create tokens in smart contracts from node js

0 votes

I have followed a tutorial to deploy a contract with a certain number of tokens However, I want to list tokens, create tokens, and delete tokens from a node.js project. I don't really understand how this can be done since it costs gas/ether to communicate with the Ethereum blockchain.

Is it possible to initiate actions in the blockchain from "off-chain" projects? Can I use web3 or truffle for this purpose? I imagine that it might be possible to just store a lot of ether on an account and then just tell the smart contract to use ether from this account to update tokens in the smart contract?

Jun 27, 2018 in Blockchain by Johnathon
• 9,090 points
1,698 views

1 answer to this question.

0 votes

Any modification to the Ethereum Blockchain will cost you gas, so yeah creating new coins will cost you money. Listing them is free, you have the ability, throught web3, to list informations about blocks, accounts or smart contracts. So if you want to list coins, you can make a scraper that goes through all the Blockchain and detects ERC20 Contracts (take a look at how EVM bytecode works and how you can identify specific methods defined in protocols like ERC20 only from the bytecode) for free. Remember: Only state alteration costs gas !

answered Jun 27, 2018 by Shashank
• 10,400 points

Related Questions In Blockchain

0 votes
1 answer

How do I send back ethers to the sender of the tokens in a smart contract?

Whenever a smart contract receives ether via ...READ MORE

answered May 30, 2018 in Blockchain by Perry
• 17,100 points
3,626 views
0 votes
1 answer

How to prevent the smart contract from being modified and deployed in the blockchain network?

To expand on Matthew's answer, each state ...READ MORE

answered Jul 6, 2018 in Blockchain by aryya
• 7,460 points
822 views
+1 vote
1 answer
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,947 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,468 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,472 views
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,220 points
1,489 views
+1 vote
1 answer

How is it possible to achieve privacy and confidentiality in smart contracts??

Any contract code written on the blockchain ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points

edited Aug 7, 2018 by Omkar 957 views
0 votes
1 answer

How can I retrieve to and from address in transaction directly from blockchain?

The spending conditions, i.e., who is able ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
1,329 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