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
0answers
5 views

How to disable deployment of smart contracts on besu private network?

Is there any way to disable creation of smart contracts on Hyperledger Besu Private Network for addresses except those that I specify? I want to create private network with zero gas fee, but no one ...
0
votes
0answers
10 views

ERC-721 use tokenID as metadata

I am creating a collection of NFTs which require very simple metadata. I am associating unique 10-character strings with each token, and nothing else. I could implement this in two ways: Use the ...
1
vote
2answers
187 views

Do Solidity smart contract symbols support unicode?

In a smart contract where the token name and symbol are defined, is unicode supported or should these be ASCII only characters? As below, would it be a valid contract or token symbol? constructor()...
0
votes
0answers
10 views

Contract Created successfully but I don't receive tokens ? Bscscan testnet

I'm really sorry for the basic question. I've made some basic contracts from youtube videos, now I've tried to take contracts from BSCscan and put them through Remix on Testnet to try them, but I ...
1
vote
0answers
8 views

Calculating AAVE intereset rate belonging to different users that transferred into a smart contract

I have a smart contract that accepts user funds and adds them to an AAVE lending pool (DAI for example). Something like this: lendingPool.deposit(stableCoinAddress, amount, address(this), 0); As you ...
0
votes
0answers
15 views

List all minted tokens in SmartContract

I have a Smart Contract that I'd like to build a web based marketplace app for. How can I list all available "Items" in the contract. Seeing as there is no upper limit to the number of ...
1
vote
0answers
9 views

Do some crypto-assets have an “admin key” that allow some users to exercise “unilateral control and influence” over the asset?

I am reading the SEC prospectus Coinbase's initial public offering, available here. On page 20, it is written: Many crypto assets have concentrated ownership or an “admin key”, allowing a small group ...
0
votes
1answer
18 views

Changing metadata dynamically

I am building a blockchain game where users can update their character's appearance. This is done by calling a function called updateAppearance in smart contract. I want to show latest version of that ...
1
vote
1answer
13 views

How to get tokens from a contracts 0x0 address?

I was having a deep dive through an address I found interesting and noticed that all his tokens always came from a contracts 0x0 address. How is this done? I assume this is how smart contracts work ...
0
votes
1answer
12 views

Getting current user balance of an aToken for a specific asset in AAVE v2 protocol

As AAVE protocol V2 documentation says: aTokens are interest-bearing tokens that are minted and burned upon deposit and withdraw. The aTokens' value is pegged to the value of the corresponding ...
0
votes
1answer
11 views

Are there any fungible, but indivisible, ERC tokens?

Are there any ETH tokens that are fungible, but also indivisible? I'm learning about ERC-1155, and one of the common use case examples is video game items. For example, your game might have 200 swords....
0
votes
1answer
41 views

Uniswap/Pancakeswap SWAP swapExactTokensForTokens / swapExactETHForTokens FAILED (Sniping Bot)

I'm a beginner and for the past few days I have tried to recreate this tutorial: https://www.youtube.com/watch?v=a5at-FEyITQ At first I tried to implement it on PancakeSwap, but got a Transaction ...
0
votes
0answers
11 views

EIP1155 token specific URI's

For EIP1155 standard the current implementation means you are supposed to have 1 base uri and then the metadata for the token is inferred from the tokens ID. Example of such a URI: https://token-cdn-...
0
votes
1answer
30 views

Can a smart contract automatically generate tokenURI based on tokenID

Is there a way a smart contract can automatically generate tokenURI using the tokenIDs of erc721 tokens, if we dont want to use other methods. I am a newbie so need some guidance.
2
votes
2answers
22 views

How Ethereum take fees in broadcast?

Can I broadcast someone else signed transaction and use fee from my address? if yes then how? Let me elaborate my Question Suppose person A want to transfer some ERC tokens to person B. But person A ...
0
votes
1answer
19 views

given tx hash: tokens transfered?

I have a transaction hash (for example 0xd97a7f7e15709ce345842a52a6e8db395e6ba779fd76a426b1878512a34a8128) I would need the information in red, basically the tokens involved (the first one is an ERC20 ...
0
votes
1answer
9 views

I need to know how to set a maximum buy limit per wallet

Yeah so I'm creating a eth token and I need to find a way that buyer have a purchasable maximum limit. Can anybody help me with that ? Can't find answer thanks a lot.
-1
votes
0answers
11 views

Who can help me clone a token [closed]

On bsc and also i would like to lock liquidity for 1 year aswell as other improvements etc Can anyone help me get a token stsrted.
0
votes
0answers
11 views

How can i pause the token transfer of specific tokenid only in openzeppelin ERC721 contracts?

I want to lock the transfer of specific tokenId of ERC721 Tokens owned by EOA for specific amount of time. Is it possible to achieve that?
1
vote
1answer
14 views

Price feed of multiple coins in a single GET request

I have used Chainlink oracle to get the price feed of a single coin. But I want to fetch the latest price of 100s of coins from the smart contract using oracle. Is it possible to get the price of ...
2
votes
2answers
34 views

Are Uniswap tokens LP tokens?

I am new to DeFi. I have read that: LP token is an ERC-20 token you get in return for providing liquidity on Uniswap. You can think of it as a sort of IOU coupon or a receipt. In essence, the amount ...
0
votes
0answers
16 views

How can I get the newest tokens? [closed]

I tried this and got some results but tokensniffer(.)com shows different results and I can't get these ? Do you know how they get them ? { ethereum(network: bsc) { smartContractCalls( ...
1
vote
1answer
25 views

How to call smart contract function when the owners address receives ethers?

A token ERC-20 smart contract can call functions when the transfer() function is called to send or receive tokens. I can test if is the owner address and make things. Its possible that my smart ...
0
votes
0answers
8 views

Designating the Deployer address on BSC? [closed]

How do you identify/set the "Deployer address" for a token on BSC? My Metamask wallet is holing a large amount of the tokens from my new contract, but that may look suspicious to new holders ...
1
vote
0answers
10 views

get all transfer events with getPastEvents that are from or to an address

i want to get all the events transfer from a erc20 token , that has a relation with an address either he send tokens or he recived them ,but filter with both fields with the same addres is like an &...
3
votes
1answer
40 views

Should new tokens be developed using the ERC-777 token standard?

EIP-777 came out in late 2017 and yet many projects still use ERC20 token standard. The only one I've heard of using ERC777 was UNI which was hacked because the attacker was able to set how the ...
0
votes
2answers
23 views

Can I use OpenZeppelincontract to create your own contract on testnet and mainnet?

I'm learning ERC-1155 Multi Token Standard, and I found great OpenZeppelin tutorial. However, I'm not sure if I can use that OpenZeppelin contract when I deploy my contract to the testnet or mainnet. /...
0
votes
0answers
11 views

Liquidity Of Token In Pancake

i tried to connect my token via pancake just want to ask if i remove LP of my token so ppl can still trade or not? And if someone bought my token will his money convert into LP? And if yes? Then if i ...
0
votes
1answer
18 views

How i can start Trading My Token

I have created token also its live on BSCSCAN , how I can start trading on it. I tried via pancakes but there I have to deposit BNB for LP is there any other way?
0
votes
0answers
9 views

Setting the sale period in the ICO contract

Now I'm creating an ICO contract according to the ERC standard and I need to create several sales periods. For example. The first period. Duration - 2 weeks. The cost of the token is (N) ETH. The ...
0
votes
1answer
15 views

How i can bun my tokens i tried this code but getting error

In last there is code of burning tokens please help me i am getting this error TypeError: Indexed expression has to be a type, mapping or array (is function (address) view returns (uint256)) --> ...
0
votes
1answer
17 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
12 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
24 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
33 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
14 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
18 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
11 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 ...
0
votes
2answers
70 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
24 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
22 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
35 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
11 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
25 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
18 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
10 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
32 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
92 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
2 3 4 5
34