I created an simple Erc 20 with basic mint and burn functions.I want to deploy it to bsc via a bridge.How do i implement a bridge for Eth-Bsc token?
Related
I've been searching for a while, but I can't seem to find an answer to this so it would be very helpful if someone can clarify this 😣.
Let's say i have TokenA as an ERC20 deployed to the Ethereum mainnet and I have TokenB as an SPL deployed in the Solana Blockchain.
Is there any way of exchanging those 2 Tokens?
I know with Uniswap I can create my own pool and put some liquidity for my Token, and then swap it with the Selected pair. Eg. TokenA/ETH
But in the case above, the 2 tokens are part of different Blockchains..
Thank you very much
The sol wallet will be different from the ERC wallet
You can create smart contract for recieve etherium and one for sol
And by the use of molaris server add watcher for event on the 2 contract when one of them recieve the token and the recieve wallet for the other blockchain run script from the molaris server for transfer token for the address from the other blockchain
Sorry for bad English
I want to create a website for minting my NFT-TOKENS. It seems the websites sell NFT-tokens by minting ETH on Ethereum, Now I would use my token(ERC20) instead of ETH. Is it possible?
You can sell your NFT tokens for your ERC 20 tokens, but you will still need ETH to perform transactions on the network.
I want to deploy my own ERC-20 token on different blockchains, so is there any possibility to deploy the same token contract on different blockchains. If we do that we can't give the same name and symbol for three blockchains. can anybody tell me what is the solution for this problem? Or can we deploy the contract with the same contract address on three blockchains?
can we deploy the contract with same contract address on three blockchains.
It depends on the network that you're deploying to and the address that you're deploying from. Assuming that the networks of your choice have the same 1) address format and 2) calculation of deployed contract address - then yes, you'll be able to deploy your contract on the same address on multiple networks.
For example Ethereum and BSC do have both of these features. But even though Tron network supports EVM-compatible smart contracts, it has a different way to calculate its addresses, so it won't be possible to deploy your contract on Tron network with the same address as on Ethereum or BSC.
The key to deploy the contract to the same address on multiple networks, is to deploy from the same address, and using the same params:
In case of the regular CREATE opcode, the transaction deploying the contract needs to have the same nonce (and the same from) value across all networks.
Or if you're using the CREATE2 opcode, you need to pass the same contract bytecode, the same salt (to the CREATE2), and again, you need to send the deploying transaction from the same address.
If we do that we can't give the same name and symbol for three blockchains
It is technically possible, so I'm assuming it's "just" a limitation of your business case or some tool that you're using, or a possible simple misunderstanding of how the ERC-20 standard works.
pragma solidity ^0.8;
contract MyToken {
string public constant name = "MyToken";
string public constant symbol = "MyT";
// TODO rest of your token contract source code
}
Is there a way to automate an ERC20 token deploy? Can a contract receive some parameters to configure the new token and then deploy it returning the new token address?
I'm trying to create a contract that speaks with a dapp which instructs the contract to create and then deploy a given ERC20 token with the given parameters (name, sym, decimals...)
Is this possible?
I've found that a Dapp can deploy a contract:
https://ethereum.stackexchange.com/questions/36698/deploying-a-smart-contract-using-dapp
But can a contract deploy a contract? Is this too pricy?
But can a contract deploy a contract?
Yes. A contract can deploy a contract.
See for example Uniswap v2 UniswapV#Factory deploying pair contracts using CREATE2 (deterministic deployed contract addresses).
Is this too pricy?
This is a business model question and cannot be answered based on the information you provided in the question.
I'm looking to build a ethereum private blockchain, and will like to only restrict a particular user or ip address that can upload smart contracts to our chain.
Is that possible?