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
0
votes
1answer
21 views

How i can burn my Tokens?

how i can burn my tokens please help me also when my token is live on bscscan will its graph live also or i have to make >? and how i can make my tokens on sale like i have to make another contract ...
0
votes
0answers
26 views

ETH token transfer Fail and error is: Warning! Error encountered during contract execution [Bad instruction]

sometimes I am encountering a problem where I am trying to send tokens (USDT in this particular case) to other address and the transaction fails, because of "Warning! Error encountered during ...
0
votes
1answer
56 views

Total supply of deployed token is wrong

I made a BEP-20 (ERC-20) Token. Can you guys suggest me what mistake i did. I am getting total supply 0.001 MKY. It should be 1000000. contract Token { /// @return total amount of tokens ...
1
vote
3answers
51 views

How can I transfer tokens of my ERC20 automatically from the server?

I deployed an ERC20 contract. I want to send tokens to other addresses without my manual sign. How can I transfer tokens from my wallet automatically from the server? (via php for example) Thanks.
0
votes
0answers
19 views

add() function with more parameters on solidity?

I'm trying to help a friend debug a timelocked transaction within a BSC smart contract written in solidity 0.6.12 but this is the first time I read code on this language and platform. We're trying to ...
0
votes
0answers
97 views

No contract instances

I get an error that says no contract instances to interact with when trying to deploy my pragma solidity ^0.8.3 import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/...
0
votes
0answers
31 views

Creating a token with a tax function

I am trying to develop a token that has a function which will allow me to tax each transaction a certain percentage and send the tax to a wallet. Any ideas on how I can do this?
0
votes
0answers
13 views

Is an ERC721 Token an Instance of a Contract?

I'm new to smart contracts and I would like to get my head around the concept of "tokens". From what I understand tokens are defined by smart contracts. So one could say, "This token is ...
0
votes
0answers
9 views

How can I make my Contracts be able to mint tokens from my deployed ERC20 Token?

I have a DApp that wants to use a token I have deployed has a form of payment. The problem I'm facing is making that DApp be able to ask the Token contract to mint some of its tokens, and then send ...
1
vote
2answers
170 views

OpenSea to ERC 721 (NFTs)

I'm a mere mortal in the coding world (e.g. a complete noob). I'm an NFT artist that has an increasingly popular collection on OpenSea. The collections on OpenSea, however, uses a system called 'Lazy ...
0
votes
1answer
126 views

If Uniswap's domain goes down, how can we remove our tokens from a Liquidity pool manually without a front end interface?

Let's assume Uniswap's domain and front end interface is taken down. How can I as a user manually remove my tokens from a liquidity pool? What do I need and todo?
0
votes
1answer
26 views

Create my first ERC721 Collectible collection (VS CODE) //Need Advice

I want to start developing with Solidity in my Visual Studio Code my first ERC721 Collectible collection so i installed Visuall Studio Code first, then nodejs and npm and in the end Truffles and ...
1
vote
1answer
51 views

How to have the contract check if the msg.sender currently owns a specific token. (erc721)

Assuming I have a contract to mint my own NFTs: (I'm thinking ERC-721, but not necessarily). I want to create another smart contract that before doing anything, verifies that the address interacting ...
2
votes
0answers
16 views

Do ETH and ETH-based utility tokens face a velocity problem for investors?

This question specifically is about Ethereum and other cryptocurrency coins, but should be applicable to any asset as far as I understand. I was a reading a valuation paper by Grayscale Research and ...
1
vote
1answer
39 views

Simple way to send gasless Transactions

I was wondering if there is a way for a user to pay transaction fees for another user, meaning user A sign the transaction and user B send it to the network and pays the gas fees. I found a solution ...
0
votes
0answers
26 views

I want to reward users letting them claim tokens if they use my DApp. How do I prevent cheaters from using any other DApp?

I want to distribute tokens to users by verifying some data they provide to a DApp (for example, matching their camera photo with the database containing their faces). Since there will be thousands of ...
0
votes
0answers
11 views

API or any other method to gather list of all token holders for a large number of ERC-20 tokens

I know Bloxy provides this, and a number of other services. However, they have a limit of 1 request per second. This does not work for me since I need to search for thousands of tokens. Any idea how ...
0
votes
1answer
50 views

What is going on with this XBT token?

So, I have this token called XBT, Elastic Bitcoin, in my wallet. 0x64fB96d0395f6bf105F35233911e3dF2C5bf4Ce8 Is the contract address. My address is 0x9B3De9eF1AbB57750e762e8c0762BF86a2F21033. Etherscan ...
1
vote
1answer
209 views

View all NFTs owned by specific Ethereum wallet

Python developer here, very interested in the ETH ecosystem. I would say I'm an experienced developer, but unaware of the many languages/tools that are available to interact with Ethereum wallets. Let'...
1
vote
1answer
30 views

ERC20 token transfer is not working in Ethereum private Blockchain (contract to contrcat call)

When I am trying to call ERC20 token transfer function from another contract (contract to contract call) in ethereum private blockchain network is not working, but if I try to call directly from js it'...
2
votes
3answers
48 views

How would you optimise this iteration in a contract for gas usage?

We are two young devs that are starting to explore this amazing world. As a starting project we wanted to make a funny, but real, project on Ethereum. The project is inspired by DecentraLand (LAND) ...
0
votes
1answer
173 views

Estimate Gas cost for a function call in solidity (on-chain)

I'm looking forward to get transaction cost for a particular function call in solidity onChain. I found methods using the web3.estimateGasCost(). But i need is, i should be able to calculate this on-...
4
votes
0answers
140 views

How would an nft marketplace structure their smart contracts to pay out “creator shares”?

This may be a noob question, but does any know how a market like Nifty or any similar nft marketplace actually implement paying a "creator share" or royalty back to the original creator ...
1
vote
1answer
49 views

“Add Token” in Metamask

Why is it necessary to manually add a token you will transact in (before the actual transaction) in Metamask? What happens if someone doesn't do that before a transaction, to display that balance in ...
0
votes
1answer
21 views

What if I transfer mainnet tokens to an xDai address?

What if I transfer mainnet ERC-20/721/1155 tokens or ETH to an xDai address? Transferring to a different blockchain generally doesn't work, but xDai has a token bridge. Will it work for xDai?
0
votes
1answer
384 views

Transfering MATIC tokens on matic network

I'm attempting to transfer MATIC on the matic testnet (mumbai) and submitting the standard ERC20 transfer call (0xa9059cbb) isn't working. Here's my transaction: ...
1
vote
1answer
35 views

openzeppelin ReentrancyGuard Constructor

I am trying to use the openzeppelin ReentrancyGuard contract within my ERC721 Token smart contract. Since this ReentrancyGuard contract has a constructor, I am required to declare it in my contract. ...
0
votes
0answers
101 views

Call contract's mint function from Truffle console

I'm trying to call my contract's mint function from the Truffle console, but I keep getting an error. The code looks like this: function mint(uint256 _optionId, address _toAddress, uint256 _amount, ...
1
vote
1answer
30 views

How do I obtain the transfer logs of an ERC721 token through Etherscan?

Is it possible to get the transfer logs of a specific ERC721 token ID using Etherscan API? For example, https://etherscan.io/token/0x06012c8cf97bead5deae237070f9587f8e7a266d?a=587058#readContract I ...
0
votes
0answers
64 views

Transfer Failing in Solidity Smart Contract

I am calling the following function from a front-end on a Solidity smart contract, but it is not transferring the price and commission amounts properly with the call functions, although the ownership ...
1
vote
0answers
16 views

Running ERC20 contract on RSK

I have been reading about RSK lately and was wondering about the compatibility and possibilities, so I wanted to ask for some basic info in case there's someone more knowleadgable. I have a smart ...
0
votes
0answers
44 views

Division and floor rounding with 18 decimals

I am recreating a UNISWAP-like AMM and have encountered problems anytime I want to divide the balances of tokens in my pool. For example: I want to require() that tokens are deposited in the correct ...
1
vote
1answer
86 views

Is ownership of tokenized real assets through NFT upheld by law?

Let's say you've tokenized your house as a non-fungible token (NFT) on the Ethereum blockchain. if an NFT simply represents ownership of a tokenized asset, what actors or agencies currently will ...
2
votes
2answers
156 views

What tokenized assets can be stored on-chain?

Examples of digital assets that can be tokenized as NFTs are: crypto art (.jpg or .png file stored off-chain) game weapons or characters Examples of physical assets that can be tokenized as NFTs are:...
1
vote
1answer
29 views

How to write a simple token contract which token can only be transferred within the specific geographical region?

In my use case, I want to build a local currency system with solidity. The core concept of local currency is that the currency can only be used in the specific region. It aims to encourage spending ...
0
votes
1answer
26 views

ERC20 Token Batch Send Security

I've written a function to send tokens in a batch, just wondering if this is secure, and if this is the best way to go about it (instead of using something like Token Multisender). Here is the ...
0
votes
0answers
112 views

NFT Token Ownership Transfer Initiation

I am developing a dapp/smart contract, where users will be able to sell/buy NFTs from each other (market). Users grant authority to the smart contract to sell any of their items on their behalf using ...
0
votes
0answers
589 views

How to convert ERC crypto art NFTs into a Cardano NFT?

This is being asked two days before native tokens and multi-asset support hits the Cardano blockchain, but, given that Cardano has created an ERC-20 token converter that converts ERC-20 tokens to ...
0
votes
0answers
78 views

Collecting crypto art from multiple NFT platforms in the same wallet

Is it bad practice to collect several pieces of crypto art (NFTs) from multiple platforms (Rarible, Makersplace, Opensea, Gemini Nifty Gateway, Async art, etc) all into the same Ethereum wallet? And ...
0
votes
1answer
259 views

Non-native tokens versus Native tokens

to me ERC-20 tokens are a sub-class of Ether, yet they are referred to as "non-native tokens". Why would they be called non-native? What would be native in the Ethereum sense then? Cardano-...
0
votes
0answers
14 views

How to verify that an address is mine

I transferred usdc to an ethereum address apparently and now am supposed to verify that the address is indeed mine. I see the amount (token) on etherscan but don't know how to claim it. It's asking me ...
0
votes
1answer
34 views

Problem with implementing ERC-20 interface in Solidity contract

I'm trying to implement contract which interacts with ERC-20 via interface. Code of interface was taken from openzeppelin github. The problem is that it fails any transaction which triggers contract ...
0
votes
1answer
30 views

How can I test my purchase function on the truffle with chai?

I'm trying to test my token buying function but I encounter an error, o facilitate understanding I will show the code "Error: Returned error: VM Exception while processing transaction: revert&...
0
votes
0answers
62 views

Why With Truffle, token is not verified in bsc test network?

As seen on the screen, I did the build process, but the verification process fails. I got the API key, I entered but it is not working Where am I making a mistake? address: https://testnet.bscscan.com/...
0
votes
1answer
19 views

Get addresses that have my token and the amount

How can I find out what addresses my token has and how much is solid? I thought of creating an array with the addresses like this would go through, but this array can grow to infinity and cost me a ...
0
votes
0answers
20 views

Is this transaction fee for contract creation normal?

I am creating erc20 token. Transaction fee for it is about 0.3ETH. Contract size is not big. Is this price normal or am I doing something wrong? Gwei 262. Current Eth price 1917USD. Contract : pragma ...
0
votes
0answers
23 views

Different ways of exchanging tokens

I am conducting a study on transaction behaviour and dynamics on the Ethereum blockchain. Currently, I am analysing the token transfers of different user groups. After leveraging Google Big Query and ...
1
vote
0answers
28 views

API for circulating supply

I am trying to list circulating supply on coingecko for an ERC20 token - how would I go about doing this? I've been able to find one for total supply, but not circulating however.
0
votes
1answer
30 views

About smart contract [closed]

I trade (scalping) cryptocurrency futures on binance. I'm not a developer and I don't know programming languages. Can I learn to write smart contracts without knowing js or java? and advise please , ...
0
votes
0answers
81 views

Web3 + Truffle, is this the correct way to approve a spend?

I have created an ERC20 token using Web3, Openzeppelin and Truffle, and minted some tokens. const LToken1 = await ERC20.new('Test L Token 1', "TEST1", web3.utils.toWei('1000000')); I would ...

1 2
3
4 5
35