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
2,246 views
Hello. And Bye.

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
4,243 views