Questions tagged [addresses]
Addresses are the particulars of names, domains or accounts on the blockchain.
722
questions
0
votes
0
answers
165
views
Max Wallet Amount Held - Excluding the Owner Address
I´m new to coding but have been working for endless hours trying to solve this issue on this ERC20 token. So far everything seems to work except for one thing that I just can´t seem to figure out. I ...
0
votes
1
answer
245
views
Proxy Contract Address - Upgradeable
I'm working on a Upgradble ( Proxy - Logic ) pattern smart contract.
I have the ABI and deployment address of my logic contract saved in my proxy contract so I use a simple call function.
The proxy ...
3
votes
1
answer
465
views
Get all addresses that interacted with a specific smart contract
I have the following question:
What is the best way to get all unique addresses who interacted with a specific smart contract?
For example, I want to extract all unique addresses which have interacted ...
0
votes
1
answer
49
views
Securely generate random public and private key
I need some temporary addresses in my contract.
Is there a secure way to creating public and private key pairs within the contract?
0
votes
0
answers
19
views
What if someone changes the public key, which is included in a smart contract to withdraw money
I'm fairly new to blockchain.
I had a question suppose userA has a public key/address.
And there is a smart contract that executes some logic and in the withdraw function it gives some ETH to userA (...
1
vote
1
answer
17
views
Why is it necessary to access smart contracts via their address?
I am new to solidity and just started exploring smart contracts.
I have a smart contract for creating a Person struct with name and age and a function to access the structs using the name variable:
...
1
vote
1
answer
194
views
how to deploy the smart contract in brownie
Error: Final argument must be a dict of transaction parameters that includes a `from` field specifying the address to deploy from
Terminating local RPC client...
smart contract:
pragma solidity ^0.5....
0
votes
1
answer
527
views
How would I go about finding out whether an address owns a specific NFT or not?
Can it be done simply using web3.js? Can I do it on both ERC-721 and ERC-1155 NFTs?
0
votes
0
answers
41
views
Getting "ValueError: invalid sender" in brownie and python when sending ERC721, eventhough the scripts does work on test-net
I'm using the following code:
from brownie import myContract
from brownie.network import max_fee, priority_fee
from scripts.scripts import get_account
import pandas as pd
max_fee("50 gwei")
...
0
votes
1
answer
257
views
Adding whitelist batch function
So for my project I want to add a function that allows me to add multiple addresses and assign a name to those addresses that will be later used for minting their NFTs. This function takes in an array ...
0
votes
1
answer
35
views
Why hardcoding wallet addresses into the code of contract considered bad?
Why hardcoding wallet addresses into the code of contract considered bad?
And what is the workaround for that?
I've not found any information in the Internet.
0
votes
2
answers
371
views
How to correctly call `<address>.balance(uint256)` to get the balance of a specific address [duplicate]
I am a newbie in Solidity. I am learning by reading official docs, i.e. Solidity I am trying to get the balance of an address in solidity using the simple balance method. Below is my code:
pragma ...
-1
votes
1
answer
34
views
How to restrict a function call only to the owner of a private key of a public key in a parameter (many users)?
Let's say, there's something like a lottery. And there's a function in a smart contract that allows ANY user among users to check whether he's won something or not. If he has, it'll allocate the coins ...
0
votes
1
answer
372
views
How to get the address of the contract deployer?
What is the easiest way to get the address of the deployer from a contract (assuming I have the contract addresses of course)?
It's possible to see on etherscan, but I was wondering if there was a way ...
0
votes
0
answers
156
views
Create ethereum address starting from entropy
Yesterday i came across this amazing tool by Ian Coleman https://iancoleman.io/bip39/ .I was wondering if it was possible to reproduce a script in phyton that do the same thing. Which should be the ...
0
votes
3
answers
410
views
How to tell if an address is a contract or just an address in solidity
My solidity contract allows users to earn interest on their token holding.
I want to prevent contracts which hold my token from earning interest. This will stop the pancakeswap router or any other ...
1
vote
0
answers
33
views
how do exchanges move their users assets?
do big exchanges move their users assets from HD wallets different dresses to a main wallet address ? to eventually move it to cold wallet ? if the answer is YES how do they do it? that's a lot of on ...
1
vote
1
answer
905
views
Ethereum Null Address List
I found Null Address list in etherscan.
https://etherscan.io/accounts/label/burn
I know that null address is 0x0000000000000000000000000000000000000000 because of it is genesis address, but I found ...
2
votes
1
answer
317
views
How to encode empty transaction fields?
I want to RLP-encode a(n unsigned) transaction. Some fields of the transaction can be empty/null/zero. I want to know how they are encoded, though.
Let's assume the following transaction fields:
...
1
vote
1
answer
266
views
How to set the receiver of ETH in a contract to send ETH from one address to another with solidity usign call() in remix IDE
I'm starting to learn solidity, and I'm trying to build a sendEther contract where some address sends an amount of ether to another address. I'm building it on remix, and I'm having trouble while ...
0
votes
1
answer
117
views
While using Ganache in a web UI, how can I change address of user
While using Ganache in a web UI, I have assigned defalutAddress as a particular address.
But if I have to change user , do I have to always change defaultAddress in indx.html ?
Thanks
0
votes
0
answers
112
views
Why does Hardhat's just deployed contract.address differ from the real one?
I am deploying a contract on the testnet with hardhat, but the address returned is not the real address the contract is at in the blockchain.
I am following hardhat's guide.
Code:
async function main()...
0
votes
0
answers
20
views
Is it allowed that the same address miner mine two blocks with the same block height at the same time?
I have the question after viewing the following two blocks. I post the url here:
https://cn.etherscan.com/block/13821587 This block is in the main chain at the height of 13821587.
https://cn....
0
votes
1
answer
51
views
Convert address to string in Dune dashboard
I am playing with a query that does the job (not optimized yet), but I need some formatting in the sender column.
This is what I need:
Get rid of the initial '\' returned as sender
Append a 0 on ...
2
votes
1
answer
196
views
How to view contract source code from ABI, address and bytecode?
I have the address and ABI of a contract. I can also view the bytecode from that address on Etherscan but not the source code. Is it possible to get the contract source code using these information?
1
vote
1
answer
92
views
Find contract address based on ABI
I'm trying to find the deployed address of a contract (on Ethereum mainnet) from its ABI or source code. Is it possible?
0
votes
0
answers
176
views
How can I generate private/public key Tether?
i wanna to generate private/public address from USDT(Tether) for send and recieve that for my website, im coding with Asp.net Core C# language
please step by step help me because im not adult.
Thanks
1
vote
0
answers
178
views
How can an Ethereum address start with 0x5555555555? [duplicate]
Ethereum wallet addresses start with 0x followed by random number and letters as a hexadecimal string. How is it possible then that there are addresses visible on Etherscan that seem to be "...
0
votes
0
answers
257
views
How to mass input addresses into an an array (Mass whitelist)
I'm a beginner solidity dev and I have almost finished my first basic smart contract. It includes a whitelisting feature, where you need to be whitelisted to mint. I changed the function from only ...
0
votes
1
answer
815
views
How do Interfaces in Solidity know which contract they are interfacing?
To my understanding, an address at some point needs to be provided so that the name of the interface that you write in your code is linked to the existing external contract you want to interface with. ...
0
votes
1
answer
22
views
variable in WGAME woolf.sol confuses me
Okay, so I was looking over the wolf contract(https://etherscan.io/address/0xeb834ae72b30866af20a6ce5440fa598bfad3a42#code), to understand how they fixed it and what happened... and one thing just ...
0
votes
0
answers
11
views
Issue when passing argument with double quote javacript web3js
I would like to pass an address list as argument in order to send some crytos by batch. What I need to send as argument -> ["0x...0","0x...0","0x...0"]. My address ...
0
votes
0
answers
14
views
What's the purpose of adjusting the gas in a function call?
Was reading about the call method on addresses:
https://docs.soliditylang.org/en/v0.8.3/types.html#members-of-addresses
Why adjust gas and ether sent to a contract when calling a function? What ...
0
votes
1
answer
106
views
What is and where to see in transaction in Etherscan the fields result.contractAddress and result.confirmations in API?
When I download data from a contract using API there are 2 fields that i cannot understand in which part of transaction in Etherscan are these numbers and maybe give me the definition of those fields:
...
0
votes
0
answers
59
views
Using array of addresses in web3.eth.subscribe()
Referencing Thread I want to clarify the usage of the subscribe(). I'm wondering if I'm able to use an array of addresses that shall be subscribed. As mentioned in the documentation a list of strings ...
0
votes
0
answers
13
views
What's the contract address of Binance Liquid Swap
Looking up a token on CoinGecko gives me the exchanges where a token is being exchanged at. When I query for Axie-Infinity, in the exchanges table there's a row that says "Binance AXS/USDT". ...
1
vote
0
answers
49
views
update ENS subdomains based on votes
Let's say I use ENS to assign a domain name to an IPNS address. This address would point to a json object like the following:
{
"stakeholders": ["address_of_sh_1", "...
0
votes
0
answers
277
views
"Coinbase 6" instead of exchange wallet address showing in Etherscan transactions
An exchange wallet address created on an exchange like Coinbase or Kraken starts with a unique 0x address just like any other Ethereum wallet. But when you transfer out to another 0x address from this ...
0
votes
1
answer
121
views
Strange error on Mumbai's polygonscan
I have a write function to add an array of addresses, I put for example this:
["0xddC5f73aB04FbcE9fF79AA07D0A4196BD0285f46"]
And the polygon scan (not metamask), says this error:
invalid ...
0
votes
1
answer
63
views
Is there a way for a third party to determine whether 2 addresses have been created from the same private key or not?
My goal is to create multiple addresses that are trully unreleated to each other. I'm aware that there's a way to do it in such a way that they'll be derived from the same private key. But will they ...
0
votes
1
answer
104
views
Send Token to Random Addresses
First of all, is this the right way to send a token to a random address?
_mint(address(keccak256(abi.encodePacked(now))), _amount)
If so, how do I make it to repeat itself 10 times (sending a token to ...
2
votes
2
answers
214
views
I want to get Public key from transaction
I want to get public key from transaction.
For example, TXID : 0x191095343fd26cbb4c58996aa6512d5cdf43281d565072bab8d0d5ea9e3d644e
I have tried "Get Raw Transaction Hex" in etherscan and use ...
0
votes
1
answer
568
views
Solidity send value of payable function to owner: "Send and transfer are only available for objects of type 'address payable', not address"
Simple test/use case, there is a payable function that should send money directly to the owner. I get the error as in the title. Code:
address private owner;
constructor() {
owner = ...
1
vote
1
answer
38
views
Why the zero address has less balance than the burnt tokens?
Currently there are 610,043 burnt ETH, but address(0) has a balance of 11,277 ETH. Why this zero address has so little Balance if it's a blackhole for all ETH ?
1
vote
2
answers
603
views
I`ve sent ETH to the wrong address
I`ve sent ETH from my gate.io to my metamask and I wrong the last number from metamask, is there any chance to get them back ? In the etherscan.io still shows available.
This is good one: ...
0
votes
0
answers
86
views
Best way to get balances of multitude of addresses
I have a list/array/map of addresses.
I want to keep track of their balances on the front end.
Currently, the front end is calling the balanceOf() function for each address and updating based on the ...
1
vote
0
answers
18
views
Bep20 - I sent the token to the Token Address [duplicate]
I accidentally sent the token to the contract itself. This mistake is worth more than $300,000 as of now. I was wondering if ANYONE could look over the code and help me resolve this issue. Is there ...
1
vote
1
answer
96
views
What's the strategy for generating a wallet address for a ERC20 token that does not have a BIP44 coin type?
I am creating a wallet (just for the ethereum ecosystem) that allows the user to create multiple accounts from a single 24 word mnemonic.
I was thinking BIP44 is a good fit until I realize some token ...
1
vote
0
answers
160
views
Can I verify if given address is a correct ETH address using web3j/Java?
Is there a possibility to verify if given String is a correct Ethereum address?
I have found out that there is a possibility to do that using web3js I can do either:
web3.utils.isAddress('...
1
vote
1
answer
54
views
Would appreciate help opening a wallet with only the recovery phrase
I am the proud owner of this wallet: 0xb34e464673ee9867E330FBef628b7571a169fe74
But I can't get to my funds. Even though I have the recovery phrase. I installed Metamask in my browser and used it to ...