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
2 views

How to get this example of ABI?

I was analyzing codes and in this example ( https://github.com/CodeWithJoe2020/sellTokenPancakeSwap/blob/main/sell.py#L39 ) they placed in SellAbi variable an ABI different from what i've seen in a ...
1
vote
0answers
6 views

Copy another address transaction patterns using raw input possible?

Using ether.js I can look for pending transactions of a profitable trading address (const copycat): provider.on("pending", async (tx) => { provider.getTransaction(tx).then(function (...
2
votes
1answer
176 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
0
votes
0answers
11 views

How to avoid user to get metadata from non-minted ERC721 token?

I'm building ERC721 and ERC1155 tokens but I have something I didn't understand.. My Tokens represent characters with attributes, where every attributes have a different rarity. So every character are ...
2
votes
2answers
610 views

Ethereum Smart Contract deployed token not showing

pragma solidity ^0.4.24; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); ...
2
votes
1answer
267 views

Token Factory total supply is missing

So I created a token using Token Factory. I hadn't used it before and wanted to test things out, so I did this on the Ropsten Test Net. I was able to successfully publish the contract, which shows ...
0
votes
2answers
128 views

How can I make my contract send out my tokens?

I've been experimenting with some generic copy-paste codes on the Ropsten Test Net and I am able to create a token and have the creator receive all the tokens. However, when I try to buy these test ...
0
votes
1answer
20 views

Stablecoin smart contract

Drop in smart contract links for ERC-20 stablecoin. There is no list defined anywhere. There should be easy to understand resources in one place for new lerners. what should be the best boilerplate?
2
votes
2answers
655 views

ValueError: {'code': -32000, 'message': 'invalid sender'} when calling transferFrom using web3.py

I want to make a function that allows you to send tokens from one owner to another. nonce = w3.eth.getTransactionCount(from_['address']) unsigned_transaction = contract.functions....
2
votes
0answers
32 views

Transfer an NFT token from Polygon to Ethereum - Solidity smart contract

I am new to blockchain development, NFT and Solidity and i need your help. I have fount this twit and this Polygon documentation Most of the assets are pre-existing on Ethereum chain. But new assets ...
0
votes
1answer
141 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
5
votes
3answers
4k views

ERC20 :: Transferring tokens without sender gas

Let's assume we have 50 ERC20 tokens that we would like to support (deposits) on our website. People are depositing tokens to the ETH adresses we've generated for them. In the end of the day, we want ...
0
votes
1answer
23 views

How to add separative commas every 3 digits in solidity to an input integer?

Is there a way to add separative commas to large input numbers? let's say the input was 1000, I want the output for this function to be a casted string that has this format "1,000". Note: I'...
2
votes
2answers
2k views

How to transfer Ether to ERC20 token contract?

I have a function that needs to make transfers to a token smart contract as well as personal accounts upon satisfaction of some conditions. function completeSale() onlyOwner public { if (...
0
votes
1answer
15 views

Is there a way to listen to events that involves a specific contract?

I would like to do something when an NFT from my contract gets transferred to another user. Can I listen to events like this? If not, what would be the best way to get around this?
0
votes
0answers
16 views

Filtered by token holder?

I swapped Ethereum for Synaps through Pancake. The transaction shows up as valid but i can't transfer/receive my Synaps to/in my external wallet, There is a message in bold that says: Filtered by ...
1
vote
1answer
12 views

Do you know where to find a library or example of a script to be able to see how much liquidity there is in a contract?

I need to see in a new listed contract in BSC, through python, how much liquidity has been added or possess. I can't find a library and a script as an applied example that can help me see that ...
0
votes
2answers
34 views

Whats needed to complete my contract token for this BEP20?

I'm trying to figure out if the 80% of the total supply is allocated to the network? and if there are any fundamental things I am missing here? // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; ...
0
votes
2answers
348 views

Minting ERC20 token fails because of zero address even though address is non-zero

I'm building an ERC20 token using OpenZeppelin's ERC20 contract. My token constructor looks like this: constructor() ERC20( "Token", "TKN" ...
1
vote
2answers
1k views

MyAdvancedToken Automating Selling and Buying function not working

I attempt to create a token with the "automatic and selling" function as describe here. After having copy/paste the code (footpage)and deployed the contract no error message appears. But when I ...
2
votes
1answer
393 views

Exchange deposits using smart contracts and externally owned accounts

While researching how different exchanges handle user deposits, I noticed a stark contrast between several prominent exchanges. Kraken: Exchanges like Kraken use newly generated deposit addresses (no ...
2
votes
2answers
3k views

Gas estimation failed in Remix

Can't really use the transfer function as it is written. It assumes the owner uses it. So made a new function for the "minting" function for the faucet to use. Not sure why the compiler message is so ...
0
votes
0answers
12 views

How "polymath" is doing "Ticker symbol reservation" on Ethereum?

So, from what I understand it is not possible to reserve the ticker symbol on the Ethereum network (I read this and this) But I am trying to understand what the Polymath is doing by "Ticker ...
0
votes
1answer
30 views

Smart contract funds stuck

Is there any possibility to withdraw ether from crowdsale contract? 0x6c725F41E98451F167820551013BD2f5BE8bFE6f I had also "pre-sale like" contract has MyToken in it ...
0
votes
1answer
13 views

How can I find the incoming balance of a erc20 (usdt/shiba etc) using its transcation hash?

I know how to find the erc20 balance of an address. What I'm trying to find is the incoming token of a particular ERCs. For example : for a transaction, I managed to fetch its from_address, to_address ...
1
vote
1answer
110 views

STO using Ethereum

Is anyone here worked on STO using various ERC protocols. Need to get some information about it. Regards, Divansh
1
vote
2answers
712 views

Save Tokens from Metamask with Stolen Seed Phrase

I got phished into sending my Seed Words to a hacker. I already lost some ETH I had there. I will be getting some tokens on the 29th of May, and I fear the hacker might also steal them. I was thinking ...
0
votes
2answers
246 views

How to configure a geth full node for indexing token transactions?

I am planning on sniping up an ethereum geth full node for querying purposes planning on using https://github.com/ethereumproject/explorer block explorer repo. For bitcoin I used -txindex=1 to enable ...
0
votes
0answers
32 views

How to implement two-way conversion between an on-chain token and off-chain in-game currency?

I need some help to code an in-game currency for my game. Explaining: I need to swap a token to an in-game currency (off-chain), and later transform the in-game currency into on-chain tokens. It's ...
0
votes
2answers
306 views

Prevent Transfer of ERC20 token to contract address?

I want my ERC20 contract to be transferred to EOA addresses only and some specific contract address only. I don't want to lose my tokens by mistakenly transferring to a contract address that cannot ...
0
votes
0answers
14 views

TypeError: num.bitLength is not a function

I need to transform stakeValue into BN, for transfer it to smartcontract const web3 = await getWeb3() const toBn = web3.utils.toBN.bind(web3.utils) const erc20Instance = await createInstance('...
1
vote
1answer
30 views

Polygon Mumbai test net MATIC tokens

I am developing a Dapp and I want to test it using the Mumbai testnet but I need many matic tokens. Currently the Mumbai faucet is giving you only 1 MATIC token. Is there a way to obtain some more? ...
2
votes
1answer
568 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
2answers
15 views

Excluding an address from fees in _transfer function

I intend to exclude the deployer of the contract from paying a 9% fee, which is placed on every transfer. I tried to do this by adding a if statement to _transfer that checks if the sender has the ...
8
votes
3answers
14k views

What does it really mean to burn tokens?

I don't quite understand what it really means to burn tokens. Since the blockchain is immutable, there should be no way to delete the record. Thus, in my understanding, to burn the token merely ...
0
votes
1answer
686 views

why does ERC20 Token Balance shows 0 frequently?

I have a DAPP and ERC20 Token which has an initial supply of 9000 for testing purpose..First step is to login/register into the DAPP where all the information resides..There is an element in the DAPP ...
0
votes
1answer
21 views

How to create a "hasBalance" modifier in solidity for any token address?

I've been researching if it's possible to create a modifier that checks if msg.sender has any given amount of a token address. Use Case: limit certain functions to owners of a given token or NFT. I've ...
1
vote
0answers
29 views

What are the best practices when launching a smart contract protocol on multiple networks/chains?

Hi I have some questions on protocols that launch on multiple networks/chains. For example, Aave originally launched on the Ethereum network but now is also on networks like Polygon and Avalanche. To ...
2
votes
1answer
647 views

Fail to "buy" from Crowdsale contract wrapping an already deployed contract

Hi I am a newbie to the Ethereum development. I have successfully deployed a burnable, pausable, capped token contract (TC) on rinkeby test network, and was able to interact with it - minted and ...
7
votes
3answers
942 views

What is DeFi decentralized finance?

What is DeFi? What are its core components? How to think about or picture "it"? Some of the parts are tokens, stablecoins (tokens with specific properties to reduce its volatility), and exchanges, ...
1
vote
1answer
650 views

Create tokens with dynamic price

Imagine that I have a contract where a user can buy and sell tokens based on a dynamic price in ETH. The price is calculated every 2 hours by a server. When buying or selling, the value used is the ...
0
votes
1answer
37 views

Why does the call() method from web3.py cause a revert when combined with transfer()?

I have deployed a contract for my custom ERC20 token. I am trying to send tokens using web3.py contract.functions.transfer(address, 20000000000000000000).call() Above code is giving error raise ...
2
votes
1answer
73 views

Same ERC20 token on both BSC & Ethereum networks

I'm developing a ERC20 token to deploy on BSC network. But the client requests that the token should be on both BSC & Ethereum networks. I did a research and found out these methods. Binance ...
1
vote
2answers
1k views

transferFrom function doesn't work

I have made a simple ERC20 token smart contract, but my transferFrom function does not work. I keep getting "Note: The constructor should be payable if you send value." even if I declared it as ...
0
votes
0answers
8 views

Question: ERC721 (NFT) contract per individual item/content or per platform

Executive Summary I am developing a cool little project to-do with NFT's, its a platform that allows users to make NFT's (I know, not original) and do other things, like buy them etc. I have had a ...
0
votes
1answer
22 views

How to get a token listed on Matcha? [closed]

Would like to request to add $NIL the token of NIL DAO to token list. Contract: 0x47252a63c723889814aebcac0683e615624cec64 Liquidity: 0x6e939360196c7f044871b17770268e8a04556121 Decentralized curated ...
0
votes
1answer
21 views

Why am I getting "not implicitly convertible" and "member not found" errors when trying to use TokenTimelock?

I am rewriting some code in order to be able to set 4 timelocks from a fixed date to team members. I always get the error ~/code/ANCToken$ truffle compile Compiling your contracts... ================...
0
votes
1answer
17 views

Using transfer function always exceeds balance, or allowance!

I've been struggling with transfer function, where approval is not needed on ERC20 tokens where the caller is msg.sender as it's a public function, but I'm always getting same error.. Indeed I am on ...
1
vote
1answer
55 views

Should I have fixed supply or don't (ERC-20, ERC-1400)?

I've started learning ERC-20 from a tutorial in which the totalSupply parameter was used to limit the number of tokens to be created. Now I've started working on the ERC-1400 token (specifically the ...
1
vote
0answers
18 views

How pancakeswap website find a multi-hop path to trade a coin

I publish tokenA I add liquidity to tokenA/usdt I then want to use my "cake" to get tokenA Pancakeswap website discover there is no liquidity cake->tokenA, it then could very ...

1
2 3 4 5
43