2022 Developer Survey is open! Take survey.

Questions tagged [tokens]

A token is a transferable, divisible object on the blockchain, such as a subcurrency or a prediction market share.

Filter by
Sorted by
Tagged with
4 votes
1 answer
743 views

Ethereum stuck in the smart contract

I deployed a beta version of an NFT project, however, some people who were not in the whitelist got their eth stuck in the smart contract, now I need to refund them by withdrawing the eth in the smart ...
user avatar
0 votes
0 answers
7 views

Is it possible to create Partitions in ERC20 security token

Am a beginner in Blockchain and learning writing smart contracts so do pardon me if question doesnt make sense as i have seen the ERC1400 security token and as per my findings Erc1400 looks better in ...
user avatar
1 vote
2 answers
18 views

What is the difference between NFTs and a smart contract?

I am exploring a new domain and wanted to understand the difference between ERC721, ERC20, and a smart contract? ERC721 is "a standard for representing ownership of non-fungible tokens," but ...
user avatar
0 votes
0 answers
15 views

How to give approval to all addresses to transfer my tokens?

I am trying to develop an erc 1155 marketplace? I am using the function : ERC1155.setApprovalForAll(to, true); To provide approval to all tokens that the owner owns to a particular address. Now, I ...
user avatar
0 votes
2 answers
17 views

Can Ethereum prevent secondary market sales?

The app: If you beat a videogame you get a win-token-v1 and the first 100 get discord access. The rest of the people who beat the game get win-token-v2 -- which has no value, except win-token-v2 can ...
user avatar
  • 125
0 votes
1 answer
20 views

Transfer function not changing custom token(ERC20) balance after successful transfer from transfer function?

Transfer function not changing custom token(ERC20) balance after successful transfer from transfer function ? The transaction is successfully performed but the amount of custom token in my wallet does ...
user avatar
0 votes
1 answer
24 views

Initializing IUniswapV2Pair from msg.sender

The Uniswap V2 docs provide an example flashswap contract here. The doc says: For the sake of example, let's assume that we're dealing with a DAI/WETH pair, where DAI is token0 and WETH is token1. ...
user avatar
  • 103
0 votes
0 answers
6 views

How do I use Mapping as a filter to return specific values in my struct?

I have a struct in my smart contract, that stores tokens in two different statuses, either as an unassigned gifts or as an assigned gifts. I would like to configure my mapping as a filter to return ...
user avatar
  • 107
0 votes
1 answer
12 views

How large is the key-value dataset of Tether?

If I understand things correctly, ERC20 tokens, like Tether, store the amount of Tether owned by each adres in the contract. With a very popular token like Tether, approximately how large is this ...
user avatar
0 votes
0 answers
14 views

Display list of token ID's in a collection on opensea?

For the ERC 1155 is it possible to display a list of all token IDs from a particular collection separated by a coma
user avatar
0 votes
0 answers
13 views

How a cryptocurrency like MATIC works?

I’m a beginner to the cryptocurrency and I’m struggling to understand the fundamentals of this field. I was reading about how cryptos work and what they are used for. I took as an example the MATIC ...
user avatar
  • 101
0 votes
0 answers
6 views

How do I calculate the circulating supply for a given token/token address from blockchain data (bigquery-public-data)?

The Following Query does not work WITH incoming as (SELECT a.to_address, a.token_address, b.symbol, SUM(SAFE_DIVIDE(SAFE_CAST(a.value as BIGNUMERIC),POW(10,CAST(b.decimals AS INT)))) as ...
user avatar
0 votes
2 answers
17 views

Where can I find info for how to create a Coin/Token?

I'm planning on creating a new Coin/Token. Most probably a Token. I know there are some repositories on GitHub to create tokens based on ERC20. And there is also platforms like CointTool.app to create ...
user avatar
  • 1
0 votes
0 answers
8 views

I use the Wormhole redeem to transfer tokens to the xanchor wormhole bridge, How can i get it back? [closed]

I withdraw ust on Xanchor to my meta mask wallet 3 days ago, but ust doesn’t appear on my wallet. Then I go to wormhole bridge to check, I find the transaction didn’t finish there, then I made a big ...
user avatar
  • 1
0 votes
1 answer
17 views

Multi Contract Interaction / Contract interacting with another contract / Contract using another contract without Inheritance

My question is what are the limitations of one contract using another contract ? When I'm using another contract as shown below, What is the another contract storing ? e.g: If contract B calls ...
user avatar
0 votes
0 answers
24 views

[SOLVED]Uniswap addLiquidityETH failing with hardhat

i'm trying to fork the UniswalV2 contracts. I've already deployed on Mumbai testnet the core and periphery contracts, these are the addresses: Core: 0xeBF7c7d1b9704516d7e0660BE568945D0bBb1aAc Router: ...
user avatar
0 votes
0 answers
8 views

When I change supply on a V2 contract how do I calcualte the new price

V1 contract has 100 Quadrillion with 50% burnt and current token price 0.000000005 Looking at a V2 with supply lowered to to 10 billion and 50% was burnt If the current V1 price is 0.000000005 with ...
user avatar
  • 1
0 votes
0 answers
35 views

Developing a Staking and Un-staking Smart Contract

I am relatively new to blockchain, and trying to write a staking smart contract, which could stake any ERC20 token and gives APY in the same token with the following requirements: Staking of ERC20 ...
user avatar
0 votes
0 answers
10 views

Is there anything stopping legally designing a project for the sake of "printing high monetary value"?

What's to stop somebody from developing an L2 where one could develop minimum constraints in which they could mint tokens, swap to a dex and then cash out et al. effectively "printing money"?...
user avatar
  • 1
0 votes
2 answers
19 views

How to show Token Transfer details on mumbai polyscan?

I am developing a smart contract where I want to mint NFTs. NFTs are being minted and shown on IPFS. But I cannot see the Token Transfer details on mumbai polyscan. Anyone know what is the problem?? ...
user avatar
1 vote
1 answer
23 views

Transaction fail error

When I add the following line - require(msg.value > 0.1 ether); I get the following error - Gas estimation errored with the following message (see below). The transaction execution will likely ...
user avatar
0 votes
1 answer
14 views

Get Transaction details using Python

I'm trying to get details of a given transaction (Datetime, Sender, Receiver, Name of Token Transerref, quantity). This is an example. I don't know any API or method can allow me to get these data. I ...
user avatar
0 votes
0 answers
11 views

Whose tokens are used for burning?

whose tokens are burned? Is it developer's or community's tokens..?? In general who want to give there tokens for sending to dead wallet? its typically loss for them if they give there tokens.
user avatar
0 votes
0 answers
8 views

Generate tokens(ERC20) based on NFTs traits

I have a contract that allows users to mint tokens(ERC20) based on certain NFTs( minted from a certain contract) owned by sender. At the moment user can mint 1 token/nft/day. User presses a "...
user avatar
  • 101
0 votes
0 answers
15 views

Wrong displayed coin in smart contract

I'm writing an app which transfer BUSD tokens in Binance Smart Chain. When i take a confirment modal in wallet where i should approvetransfer, i see 0 BNB instead of BUSD value. I use web3 contract ...
user avatar
  • 1
0 votes
0 answers
4 views

I sent a deposit from Bittrex to the ZRX - Wallet aAddress and want to recover the sold ZRX coin

This was my first time trying to do a trade and I accidently put in the Wallet address of the ZRX Token instead of my own Wallet Address.... :( I reached out to the Support team on Bittrex.com and ...
user avatar
0 votes
1 answer
9 views

Is there a list of all Ethereum unit converters?

I'm interested in converting Ether units to wei, plus other custom token amounts where the decimals may be different to 18. Is there a list of all Ethereum unit converters?
user avatar
0 votes
0 answers
9 views

How do Enzyme or Tokensets manage big amount of tokens (Solidity loops)?

There are 2 big project (Enzyme and Tokensets) that allow user to create portfolios with big amounts of tokens. You can add as much tokens as you want, always linked to a portfolio token that ...
user avatar
  • 584
0 votes
1 answer
11 views

Pool.borrow ValueError: Gas estimation failed: 'execution reverted'

I'm trying to borrow some DAI on the rinkeby testnet but borrow() transaction fails, even if I have collateral in the Pool contract. I'm trying to borrow 50% of the borrowable. Any idea why this could ...
user avatar
  • 11
0 votes
1 answer
23 views

Send erc20 token with pay another address

How can I do send USDT from Address A to Address B and pay fee from Address C with ETH. I don't want to send gas from Address A and Address A only has USDT. Does anyone have a sample code?
user avatar
  • 1
0 votes
0 answers
22 views

Is it possible to exchange one token for another via web3.js in Metamask?

I need to transfer one token to another on my website, in Metamask (for example, ether to bnb or ether to matic). In Metamask, you can select the desired coin, click "Swap" and you can ...
user avatar
0 votes
0 answers
16 views

How to get pegged testnet tokens?

I want to get FUSDC/FUDST on fantom Testnet or USDT/USDC on Avalanche Testnet. The obvious problem is all the faucet only provides native tokens, not the pegged tokens. Is there a way to get pegged ...
user avatar
0 votes
0 answers
22 views

Need help with buy and sell fee for erc20 contract

I've been looking into making my own token but I got stuck on implementing the buy and sell fees that's why I am here on stack exchange for help. the code I have at the moment should be okay but I'm ...
user avatar
0 votes
1 answer
27 views

How do I get addresses of tokens held by a smart contract?

My contract receives various types of ERC20 tokens. I'd like to know the addresses of the ERC20 tokens within the contract. The addresses are compulsory since they are still used within the contract. ...
user avatar
  • 38
0 votes
0 answers
13 views

what is the difference between an ERC 1155 collection and edition

I am confused regarding the difference between a collection and an edition in erc 1155. I do understand that a collection is like an album where we can specify that this erc 1155 token belongs to this ...
user avatar
  • 750
0 votes
1 answer
19 views

UniswapV2Router02 addLiquidityETH transaction reverted impossible to read

Please, I really need your help on this. We created the contract pointing to WETH instance, so far so good, factory address checked already too on truffle console. But, when we try to addLiquidityETH ...
user avatar
0 votes
0 answers
7 views

create multiple access tokens with erc721

I am trying to create an access control framework using erc721. the token would be used to get access. Each object owner owns an erc721 smart contract and will create one access token for every ...
user avatar
  • 1
0 votes
0 answers
7 views

Created token "Ira" (For Example) amount in Metamask transaction confirmation not shown during transfer from Remix

I created a smart contract "A" to create a token named "Ira" (For Example). And created a smart contract "B" to implement the token transfer from this smart contract &...
user avatar
0 votes
1 answer
26 views

Token id 0 minted error

i was wondering if someone can help me here. I'm minting an nft by this smart contract, and the problem is that the tokenid count starts with id 0, and that is an error. It must start in id 1. Someone ...
user avatar
0 votes
1 answer
18 views

ERC20 -> ERC20 Swapping liquidity pool

I want to write a system that will exchange any ERC20 for any other ERC20 registered in the system using Uniswap I already wrote a contract for Ether swap in DAI and back with UniswapRouterV2 My ...
user avatar
0 votes
0 answers
11 views

Ico vesting schedule

How do I create a vesting schedule for my ICO I have tried using openzepplin contract but looks confusing . Please if you have any reference code please share Thanks
user avatar
0 votes
0 answers
24 views

Minting a NFT using multiple tokens

I have two Tokens: Token A & Token B I want to make an NFT contract in which the user can choose to mint the NFT using either one of the two tokens or in ethers like: 0.05 ether or 10 Token A or 5 ...
user avatar
  • 5
0 votes
0 answers
19 views

Transfer TRC20 with password

How can I send TRC20 (eg USDT) from my wallet? I created it via wallet/createaddress and i have a password, not private key
user avatar
  • 1
0 votes
1 answer
97 views

Unable to get ERC20 token approval to accept BUSD

I've tried almost every tutorial and help available online trying to accept BUSD or any ERC20 token in my solidity smart contract. I'm deploying the contract on Binance Testnet and I have 20 BUSD in ...
user avatar
0 votes
0 answers
11 views

Trace back an ERC20 token back to its minter

I am creating an ERC20 token. Lets assume once I mint these tokens I transfer them to some buyers. Say, token 1 is minted and transferred to user 1. Again, from user 1 to user 2 and so on to user n. ...
user avatar
0 votes
1 answer
51 views

How to make sure that a token is exist?

I want to sell an NFT within my smart contract. But first, I want to check with a require statement if the token (NFT) exists or not before moving on to the next steps. I have tried require(ownerOf(...
user avatar
  • 118
0 votes
0 answers
26 views

I'm new to blockchain. Can anyone take a look at my first contract?

I want to make a collection of NFT. I deployed the contract in my ReactJS application, where an SVG string painting is generated, which is minted with a tokerCounter and msg.sender. Or at least that's ...
user avatar
0 votes
0 answers
15 views

Good Documentation / Reading resources to understand Reflections. Specifically how the calculations work between R-space and T-Space

Sorry for the tech -- but also non-tech question. I'm trying to understand RFI/ Reflection tokens and how they work. I've got the code pulled up, but I'm missing a key component on how the math is ...
user avatar
  • 1
0 votes
1 answer
51 views

What contract address is used when sending native tokens to contact

So I'm building something similar to this question Smartcontract that receive tokens and ether(native BNB) and swap it through pancakeSwap router? I have my contract and its able to swap tokens-2-...
user avatar
  • 5
0 votes
1 answer
59 views

Uncaught (in promise) Error: Returned error: unknown account Web3 js

I am Trying to Transfer BEP20 ACC Tokens on smart contract from my binance Wallet using Web3 js Library. Following is my implementation const contract = new Web3.eth.Contract(CONTRACT_ABI, ...
user avatar

1
2 3 4 5
45