Hot answers tagged

2 votes

Is it possible to verify someone else's smart contract on Etherscan?

Yes they could. And in fact if the contract has been deployed before (same bytecode), many explorers are automatically verifying it. But the big thing you should know is that people can interact ...
  • 3,590
2 votes
Accepted

Is it possible to verify someone else's smart contract on Etherscan?

That is right. Anybody with the source code can verify any contract. For example, I deployed this contract: 0xD93f610B9b70E9aCda192091645F48ACfB63C676 with this account: ...
  • 3,072
1 vote

Which way of initiating constant variable is better

Constant variables cannot be assigned in the constructor, their value are hard-coded into the byte code at compilation time. So, only 1) is possible with constant variables. immutable variables on the ...
  • 6,084
1 vote

Is it possible to verify someone else's smart contract on Etherscan?

Verification has nothing to do with minting or burning. Only the compiled form of the contract is deployed on the blockchain. Not the source code. Verification means that someone uploads a copy of the ...
1 vote

Why creating ERC20 tokens instead of using ETH?

ETH is the native currency on the Ethereum blockchain and its primary use case is paying transaction fees, as well as an incentive for miners/validators who keep the network secure. Its value against ...
1 vote
Accepted

Why creating ERC20 tokens instead of using ETH?

When you create your currency (ERC20), you create a whole economy around it. The supply, inflation, price, etc. That gives you the flexibility to create your economy for your app. Plus, you may ...
1 vote

Way to send tokens(I created ) to another smart contract for Crowdsale

Try writing this in your deploy scripts: await token.transfer(Crowdsale_Contract_Name.address, 'number of tokens to transfer to the contract') For example: await token.transfer(crowdSale.address, '...
  • 23
1 vote
Accepted

Staking contract without minting

A contract such as staking rewards from Synthetix is usually a good example
  • 374
1 vote
Accepted

How Web3 send a token transaction? [Newbie question]

First of all you can read about the accounts and wallets here. Second of all, as far as I know, the best method in both ether.js and web3.js to interact with a contract is by passing ABI and address ...
  • 725

Only top scored, non community-wiki answers of a minimum length are eligible