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

How get the mint price from contract and max supply not total supply

I wanted to get the Mint price from nft i tried getting it from abi but it's not effective since different contracts has different names for it so how can i find the set mint price from contract in ...
0 votes
0 answers
10 views

what is the most novice friendly platform for creating ones own token

what platform would you recommend to a novice who is trying to create his own token? Below is suggestions from a similar question posed to ChatGPT: Yes, here are a few examples of token creation ...
0 votes
1 answer
29 views

Can't make buy function work on ERC20

I'm trying to figure this out for the past days but without luck. I have a function called BuyTickets which by default was using only native tokens. I'm trying to change it to accept any other token. ...
  • 1
0 votes
1 answer
28 views

error: {'code': -32000, 'message': 'invalid sender'}

I have my smart contract deployed on BSC Testnet: https://testnet.bscscan.com/address/0x01AbBD3c43d447dA73CDee8d138697Df36f785d2 If I connect my Metamask on bscscan, I can use all the write contract ...
1 vote
2 answers
21 views

How to create a smart contract factory that inherits its token?

For example, here I have two contracts: The first one is the smart contract factory that also implements a token. The second one is the smart contract model that will be created by the smart contract ...
1 vote
0 answers
51 views

When i removeliquidity from router address it gets send to another wallet/smart contract

As you can see in this transaction: https://bscscan.com/tx/0x97834f4d02305c2863dccbf441e47b4405b74fd441c8dc6377210808bbb63d9d I use removeliquidity the amounts get sent to the router address but after ...
0 votes
1 answer
30 views

Coinbase says my balance is on the Ethereum network. What does this mean?

What does it mean when I’m on Coinbase and it says your balance is on the ethereum network?
0 votes
0 answers
17 views

What irregular ERC20 tokens are out there?

So I found out that some tokens behave a bit differently than a normal ERC20 token would. For example: USDC has only 6 decimals USDT does not return a value after the transfer USDT does not allow to ...
0 votes
5 answers
257 views

How to mint or release a new token every second?

Hello is it possible to make a token with a mint function that can automatically be minting or release a new token every second? Using this function function mint(address to, uint256 amount) public ...
0 votes
1 answer
13 views

How to check if safeTransferFrom succeeded?

safeTransferFrom function doesn't return any value: function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ...
0 votes
3 answers
30 views

Contract mints token id 0 ERC721A

My contract mints token id #0 instead of #1. I found out it has to do with the _safemint function but i can't seem to get it fixed How can i make the first mint token id #1? function _safeMint( ...
  • 3
0 votes
1 answer
13 views

Is it possible to simultaneously call a method from the children's smart contract by the parent's smart contract?

I have a smart contract on the BSC network that has created a large number of children and stored the address of each. In the child smart contract, the UUDT token is stored. Also, each child smart ...
0 votes
0 answers
29 views

Is it possible to only get the BUSD out from this LP pair? I pay 1000 BUSD for a working answer [duplicate]

This token: https://bscscan.com/token/0xf390fB7d16f2cbba037c1fC48862463116a7E545 stopped working after a year. The token stopped working because there was a router address added to the addpairtotrack()...
1 vote
1 answer
13 views

A question about ERC-20 Token

New to Crypto somehow. When an ERC-20 token is deployed gas fees are taken. So as the admin, I can transfer, and they take some money from my BNB accounts. Does this mean, if the holders of my token ...
  • 25
0 votes
1 answer
20 views

Amateur Questions

I am trying to develop a cryptocurrency for use in a game I am also developing. So I am not looking to monetize off of this cryptocurrency. Its primary purpose is game functionality. If so, should I ...
0 votes
1 answer
64 views

After a year this token stopped working

This token: https://bscscan.com/token/0xf390fB7d16f2cbba037c1fC48862463116a7E545 stopped working after a year. The token stopped working because there was a router address added to the addpairtotrack()...
2 votes
0 answers
24 views

What is the difference between "Matic" and "Matic Token"?

I found "Matic Token". Contract Address: 0x0000000000000000000000000000000000001010 PolygonScan Link: https://polygonscan.com/token/0x0000000000000000000000000000000000001010 I have ...
  • 57
0 votes
2 answers
43 views

Where to find new ERC20 tokens?

Hope you are all doing good. Could someone help me to find out where to get information about new ERC20 tokens? Like DEX listing announcement or smth like that, when a token is available for buying ...
0 votes
1 answer
13 views

Is it possible to earn "income" by doing work on some aspect of Ethereum beyond running a node?

I am very new to cryptocurrency and blockchain. I know people try to make money by "mining" / running nodes on a given blockchain. There is some kind of incentive to essentially expend a lot ...
0 votes
1 answer
16 views

Get last contract list

Hi i'm trying to get last contract with api i do : https://api.etherscan.io/api?module=contract&action=list&apikey=xxxx but result is : {"status":"0","message":&...
0 votes
1 answer
26 views

How to transfer all the coins that an account may have?

I have a system where there'll be dozens of accounts, for ETH and tokens. I'll have access to the private keys of those. From time to time I'll need to withdraw all of the coins in each account, in ...
1 vote
1 answer
39 views

What is the best way to apply for a Job as a Smart Contract engineer?

So i have a question to ask. I have been a software Engineer / Software developer for several years (10+ years). Now the market is saturated, not that i am leaving Web development 100% I want to ...
  • 25
1 vote
0 answers
19 views

How to identify where coin/token value is changed

I'd like to build an algorithm that analyzes value creation, transfer and destruction on a blockchain (such as new ETH minted, ETH gas burned, ERC-20 tokens transferred, etc.). Assuming I have a ...
0 votes
1 answer
21 views

Token approval questions and issues

I had a DEX approve 1000 USDT. I then traded 1000 USDT. The next day I want to trade another 1000 USDT from the same address, but the same DEX asks me for approval again! On Etherscan Token Approvals ...
0 votes
1 answer
43 views

how does this honeypot works on BSC - it allows swapping from BNB but not reverse, can't even add BNB liquidity using it

This honeypot token can't even detected by Honeypot Detector tools, can I get a sense how does this honeypot works from contract level, so keep myself safe in the future? Scam Token (Do not buy!): ...
0 votes
0 answers
39 views

How to override _beforeTokenTransfer correctly?

I have an ERC721Upgradeable contract that has a predefined _beforeTokenTransfer method. I want to override it by giving it extra features, like this: function _beforeTokenTransfer( address from, ...
0 votes
1 answer
22 views

Do Non-fungible and Fungible tokens work together in applications?

I am developing an application and wish to make implement NFT. For example, I want to sell and buy online virtual items. For example, I have an item A that will have 100 NFTs. Does a user buy those ...
0 votes
2 answers
32 views

how the ether transfer in smart contract works?

I'm trying to understand the transaction flow in the smart contract between a seller and a buyer. As far as I've looked, whatever transaction is made between the seller and buyer, the ether is stored ...
0 votes
1 answer
48 views

Add Liquidity to Goerli test network?

I was wondering how can i add liquidity on goerli test network and check its charts like a mainnet erc20 token , is that possible ?
0 votes
0 answers
32 views

Transfer ETH as ERC20?

I'm bulding a webapp where ERC20 tokens are sent to the SC, first I ask for the approval of the funds allowance to be moved and then I call a custom function from my smart contract which basically ...
0 votes
2 answers
34 views

What is ETH (or the native token of each network) smart contract address?

Is it the same on every network? If that's the case, what is it?
0 votes
1 answer
16 views

Testing the safeMint function

I am trying to successfully write a unit test for my safeMint function below. Here is my current test: const assert = require("assert"); const { accounts } = require("@openzeppelin/test-...
0 votes
1 answer
22 views

Setting up Constants in Ethereum smart contract

I am looking for the best way to use the constants in Ethereum smart contract for my ERC20. I am currently doing the following contract MyST is ERC20, Prefixed { constructor() ERC20("MyST", &...
  • 111
0 votes
1 answer
25 views

Execution reverted when trying pair.getReserves()

Here is the code I've wrote: Swap Token Gist Here's one of the TxId with the revert: BSC Scan Tx Id And here is a screenshot with the revert message: Why is the contract reverting if there are ...
1 vote
0 answers
13 views

Can’t perform transactions on my gnosis safe as I misplaced my Two other wallet information

Been a while I used my gnosis safe and now I’m trying to claim my safe airdrop and discovered I can’t find my 2 other wallet information and I’ve got access to only one out of my 3 wallets. I can’t ...
  • 11
0 votes
0 answers
27 views

getting the wrong price with getReserves()

I'm attempting to make a function that can give back the price of a token in WETH. however, the price I get back is a massive number and can't be correct. i'm getting an output of ...
0 votes
0 answers
16 views

Is there any API to return ERC20 tokens?

I'm using Etherscan.io pro API, but there is a problem! No Icon provided in the result. this API for getting token list by wallet address: https://api.etherscan.io/api?module=account&action=...
0 votes
0 answers
27 views

Burning tokens when it swaps in PancackeSwap

I`m trying to create token that burns some % of swap amount from liquidity pool every time user buy it. I tried to implement it including _burn function to _transfer function overriding. function ...
0 votes
1 answer
19 views

Sent SHIB to the contract address. Is it possible to get it back?

hi i have the same issue. Any workaround on this I sent 14,255,725 SHIB from my coinbase exchange account to address: 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE Which is the SHIB contract address. ...
1 vote
1 answer
34 views

how aave increases debtTokens?

im working on a lending protocol and for tracking borrowers debt i want to use aave debtTokens pattern but i don't get how aave increases borrowers balances in real time since we cannot change ...
  • 111
0 votes
0 answers
12 views

Tokens stuck in contract

I tried to withdraw tokens from my cold wallet to hot wallet and it got redirected to a contract between wallets. How do I proceed at this point?
-1 votes
1 answer
22 views

Smart contract transactional historic data

I would like to know what are the options of keeping historical data in an smart contract and how they compare. I figure out 3 ways: keep variables inside the smart contract updated with the required ...
0 votes
1 answer
17 views

Can ZCash be implemented as ERC-20 token or does it require another standard?

Obviously, you can implement e.g. Bitcoin as an ERC-20 token, but ZCash seems to have a way more complicated interface. I wonder if there is a standard describing tokens dealing with anonymity.
  • 165
0 votes
1 answer
18 views

How to write a bridge [duplicate]

I'm thinking about writing an bridge between 2 blockchain, one of them is EVM and the another one is not. How i can do that?? i think i need a lot of liquidity in 2 side of bridge and when user ...
  • 79
0 votes
1 answer
45 views

How to create a stablecoin pegged with gold (a gold-backed token) using ERC20

How to create a stablecoin pegged with gold basically a gold-backed token using ERC20, example 1Token = 1mg gold, what are the essential functions or steps need to take care, our customer is planning ...
0 votes
0 answers
20 views

swapExactTokensForETH function showing error in Pancakeswap

I deployed a token on bscscan(testnet) and created an LP in pancake(testing). but when I try to swap tokens for BNB it is showing an error. I think this error is related to isExcludedFromFee bcoz when ...
0 votes
2 answers
91 views

I'm a bit new to this, how can I send BUSD instead of using BNB?

I am looking for a way that when you make the purchase with a fixed amount of BUSD to a smart contract address that I already have implemented. My problem is that I can't find the way to send BUSD ...
0 votes
1 answer
45 views

How to get WETH balance from a Metamask wallet

I need to find out how to find the WETH balance of a wallet that contains both ETH and WETH. When trying to put a hold on a specific amount of WETH we need to know that the user actually has a ...
0 votes
0 answers
30 views

Bug trying to use .call with non-native ERC20 token in Solidity

I have this function called "exchangeCall" in my contract with which I can send an amount of its native ETH token ("values"), data in bytes ("callData") and an estimated ...
  • 11
2 votes
4 answers
595 views

I might have fallen for an Ethereum Smart contract scam and I don't know what to do

I deployed an Ethereum Smart contract and loaded it up with funds, but it seems I can’t withdraw any amount from it. It always shows this error message and the amount is always 0 Eth. If you look on ...
user avatar

1
2 3 4 5
47