New answers tagged tokens
0
votes
Swap, usdt to usdc, eth to usdt, eth to usdc etc
Tokens are smart contract living on the blockchain.
e.g : Matic contract: https://etherscan.io/token/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0#code
Swaping tokenA for tokenB imply :
interacting with ...
1
vote
Accepted
Im trying to build a cryptocurrency(USD tether just like USD) that works with ethereum and polygon,
The simplest way to create a token with solidity is to inherit ERC20 contract and add whatever features you want.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/...
0
votes
Viewing all cryptocurrencies on a single wallet via its seed phrase
You can do it with these steps:
Download and install Metamask.
Import your seed phrase.
Import all cryptocurrencies you have.
0
votes
Viewing all cryptocurrencies on a single wallet via its seed phrase
A seed phrase gives you a private key, which gives you a public address. What you want is to check assets that belong to that public address.
Unfortunately, checking assets for an address is not ...
1
vote
Accepted
GoFundMe Contract: Minting "Thanks" over time vs all at once & "Thanks" token value
to check if the transaction is initiated by a smart contract, you can use this:
require(msg.sender == tx.origin) which makes sure no contract is calling your function.
Minting a token will only ...
1
vote
I am experiencing issues when trying to transfer funds on the Polygon mainnet
Looking at your code seems like this is a proxy.(Please share the mainnet and testnet address for confirmation).
If it is a proxy, then you need to call the implementation's functions on the proxy ...
0
votes
Trying to issue ERC 3475 tokens
You need square brackets for the array and for the Transaction struct. See image.
0
votes
Send selected token (the one you deployed) with web3js
To interact with a contract on a blockchain, you must have to communicate with a RPC or any other endpoint prefer. To that you may have to use a direct API call, a library like web3 or ethers from a ...
0
votes
How to call functions or access public mappings from inside of a subgraph?
You can use .bind contract
Uniswap V3 subgraph has an example here: https://github.com/Uniswap/v3-subgraph/blob/bf03f940f17c3d32ee58bd37386f26713cff21e2/src/mappings/core.ts#L402-L404
let ...
0
votes
Accepted
How to send a token other then eth with metamask without extension of course?
I am assuming this question is about sending ERC20 tokens, programmatically.
For that, you would need the following things.
The private key of the account from which you will send the tokens. (you'll ...
Top 50 recent answers are included
Related Tags
tokens × 2419solidity × 771
erc-20 × 671
contract-development × 374
ether × 195
contract-design × 168
web3js × 151
remix × 145
transactions × 140
nft × 131
go-ethereum × 127
blockchain × 127
ico × 107
erc-721 × 102
etherscan × 88
contract-deployment × 82
crowdsale × 81
wallets × 68
smart-contract-wallets × 64
metamask × 63
uniswap × 62
ethereum-wallet-dapp × 57
gas × 52
exchanges × 51
myetherwallet × 46