New answers tagged

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 ...
ISMAIL S.'s user avatar
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/...
0xsam's user avatar
  • 81
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.
0xsam's user avatar
  • 81
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 ...
Lauri Peltonen's user avatar
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 ...
Yann's user avatar
  • 56
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 ...
Zartaj Afser's user avatar
  • 2,230
0 votes

Trying to issue ERC 3475 tokens

You need square brackets for the array and for the Transaction struct. See image.
0xSanson's user avatar
  • 2,774
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 ...
Iresh Madhusankha - DevCresix's user avatar
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 ...
0xh8h's user avatar
  • 155
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 ...
Zartaj Afser's user avatar
  • 2,230

Top 50 recent answers are included