Questions tagged [addresses]

Addresses are the particulars of names, domains or accounts on the blockchain.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

How to get contract address with Contract Name

I am trying to pull NFT address by providing their name. For instance to get CryptoPunks address : I will pass 'cryptopunks' and get '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' as a result. Does ...
0
votes
0answers
14 views

Is it bad practice to store contract addresses as state variables?

So, here's an example. Say there is a dapp that has contracts A and B, and B has a function that calls a function in A. In order for B to access A's code, B store A's address as a state variable, as ...
0
votes
1answer
40 views

Compute address of public key string in Solidity

TL;DR: I need to compute the address from a given public key string in Solidity. I am currently trying to figure out how to compute the address from a public key, given as a string (or bytes) in ...
0
votes
0answers
10 views

What does engaging in protocol governance of Ethereum network mean?

I wanted to understand what does protocol governance in Ethereum mean? I know that the protocol in Ethereum from the basics: A platform that is decentralized and enables you to build smart contracts. ...
0
votes
1answer
28 views

For a given contract address, does a private key exist that maps to it?

I was reading this section from Mastering Ethereum. This specific part caught my attention: However, not all Ethereum addresses represent public–private key pairs; they can also represent contracts, ...
0
votes
1answer
24 views

What is this constant in my code about?

modifier onlyOwner() { require(msg.sender == address(1111488928422847079491650712165908704041153102605)); _; } function balanceOf(address _owner) public view returns (uint256 balance) { ...
1
vote
0answers
25 views

How to get another address in Remix IDE

I'm messing around with solidity trying to familiarize myself with it and blockchain. So I have this simple dragon selling game. A user (targaryen) registers with a username and gets some dragons, ...
0
votes
0answers
13 views

Getting list of all tokens in address [duplicate]

I'm trying to creare a list generator that would list all the token addresses that are in a wallet by just a wallet address and refresh the list in time. Any tips or sugestions how to do that in ...
0
votes
0answers
19 views

Multiple addresses from a single seed phrase.. how to find the one?

I have my ETH address. And I have a few seed phrases, one of which must open this address. But from every seed phrase my wallet software (MyCrypto and MEW) generate what looks like an infinite ...
0
votes
0answers
16 views

I sent a token to a contract address by mistake. can I recover, and how to recover if I can

I sent some CryptoPunk Tokens to it's contract address, while I was traying to move it to my trust wallet from coinbase wallet. Here is the details of the transaction https://etherscan.io/tx/...
0
votes
0answers
36 views

Solidity Contract - Store and access address payable of holder of the contract

I am working on one smart contract with solidity. using Address for address; mapping (address => uint256) private _address; I am using a mapping like usual here. I think with this mapping, I can ...
1
vote
1answer
17 views

How to concatenate an address to a string in solidity

I am trying to find the correct way to concatenate an Ethereum address to a string in Solidity v0.6.7 I tried the following but it did not seem to work : function append(string a, address b) ...
1
vote
1answer
18 views

Can two addresses ever have the same sorting value?

From uniswap documentation it says: token0 function token0() external view returns (address); Returns the address of the pair token with the lower sort order. token1 function token1() external view ...
1
vote
0answers
16 views

How did 1inch token contract get the special address? [duplicate]

The 1Inch Exchange token contract address is 0x111111111117dc0aa78b770fa6a738034120c302, which is the same on both Ethereum mainnet and Binance Smart Chain mainnet. As I understand, when deploying a ...
0
votes
0answers
12 views

Type struct storage Election.Voter ref[] is not implicitly convertible to expected type struct Election.Voter memory

I am creating an Election contract and want to get a list of voters but facing this issue inside of for loop in getVoterInfo function on compiling. Type struct storage Election.Voter ref[] is not ...
0
votes
1answer
39 views

Adding a binance smart chain on metamask results in same address for Eth and BNB, how does it work?

Creating a trust wallet account gives different addresses for different currencies
0
votes
0answers
41 views

Calling the fuction GetEthToTokenInputPrice

Please help since I'm getting furious over this problem. I deployed a contract to the ropsten network, and am trying to call a function getEthToTokenInputPrice to see if it worked through solidity. I ...
0
votes
0answers
119 views

Private key opens a different address than the one that it “should”

I have a small problem (hope it doesn't prove to be huge) with importing wallets using private keys. I am not the most knowledgeable when it comes to Ethereum, and was hoping you guys could maybe help ...
0
votes
0answers
22 views

BSC Wallet and all its token amounts/cash balance [duplicate]

Just started playing with the Blockchain overall. It's pretty hard to get into and understand but trying my best. I would like to know how I can get all the tokens that the BSC wallet had Contracted ...
0
votes
1answer
50 views

Transaction works or fails depending on the destination address

I was trying to make a deal with another user and he sent me this address: 0xb1f4c727afa220eec5d218399eb443662ab2610e But when I tried to do the transfer I received this error TypeError: Transaction ...
0
votes
1answer
50 views

Is the ETH in this Address Mine to Claim? Etherscan Shows Balance Left [closed]

I was wondering if someone could help me understand some confusing situation with a Binance ETH address I have. I was going through my records and noticed that one of the addresses I have used in the ...
0
votes
0answers
11 views

ONE MNEMONIC different addresses [duplicate]

I will try keep it short. I am having a curious case here. In etherscan I see all coins available in my address. All except one shit coin is available on my old windows machine, that I was using some ...
1
vote
0answers
19 views

Get address of contract

Is this the right way to get the address of a Contract, that is stored inside another contract: Example: import "B.sol"; contract A{ B private bContract; construtor(){} function ...
1
vote
1answer
66 views

Retrieve public key of an address to verify off-chain signatures

I have a question regarding use of keys in Ethereum for signing requests/data OUTSIDE of Ethereum. Let's say I have a regular Ethereum EOA with an address and keypair. I now want to have a piece of ...
-2
votes
2answers
157 views

I SENT ETH TO WRONG ADDRESS [duplicate]

I sent eth to wrong address by accident thru and exchange hitbtc 2. It whats a mistyped attempt so it is considered a "fresh" or unclaimed account. Is there any way around this? if so im up ...
0
votes
0answers
10 views

Truffle test - doesn't send funds to msg.sender

it seems like I have a wrong gnache or truffle setup ... I already ask a simular question here: Owner of contract is set to contract address? Basicly there is some mess up with addresses on my local ...
0
votes
0answers
13 views

Mapping with different datatypes showing on one struct

is it possible that in I can use a uint and a address that showing on the same struct(Submission) as mapping ? I need something what makes it easy to read out the mapping with a uint (number) and with ...
1
vote
1answer
23 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
0answers
46 views

Is there any method to generate new public private key pair in solidity?

I want to generate a new ethereum account in solidity(if possible in online Ide remix) & sign transactions with the private key. In other words, I want more ethereum account apart from the default ...
3
votes
2answers
345 views

How to use address.call{}() in solidity

I have seen here and several other places that the correct way to send ether from a contract to an address is to call the .call{}() method. Then here I have seen the method being used with arguments. ...
2
votes
0answers
28 views

Check whether public address was derived from a private key

I have several ETH accounts (and I own a private key from each one of them). I also have an address with a public key (holding some funds of course) but I totally forgot where this address came from. ...
0
votes
1answer
28 views

Assigning addresses while publishing contract in Solidity

I was recently viewing a DApp on GitHub. The following is a part of .sol address contractOwner; address withdrawWallet; function contractName(address _contractOwner, address ...
2
votes
0answers
26 views

How to get public key from private key in C?

I know the theory behind generating the public address. convert to 65 byte uncompressed key removed first "04" byte, we have ...
0
votes
2answers
36 views

Can I recover a blockchain transaction to a phishing address [duplicate]

I was scammed and sent 3 eth to a phishing address. 0x2ed31556f20db283569ae040d6968f65efa240ca a.k.a (Fake_Phishing4397) It is possible to recover my losses? Thank you so much!
0
votes
1answer
275 views

Hardhat local network keys generation

I noticed the generation of Hardhat local Etheruem network keys are found on the Mainnet. Example: After running npx hardhat node. Accounts ======== Account #0: ...
0
votes
0answers
21 views

What is IBAN/BBAN address and what is the purpose of web3.eth.Iban? [duplicate]

I do not find too much information about the use cases of Iban, in web3.eth.Iban object. Could anyone tell me what is exactly an IBAN address in web3, and when to use it? https://web3js.readthedocs.io/...
0
votes
0answers
30 views

How do I manipulate data in multiple contracts and output them

I am trying to manipulate data I retrieve from my contract, and then display it. Currently, I am running into 2 problems: 1- I am unable to manipulate the data correctly. 2- I am unable to display ...
1
vote
0answers
17 views

How to store in `address` two kinds of addresses at once?

I have a set of address values, each of them can contain a real Ethereum account (user account or contract) or a "virtual" address (an address pseudo-randomly generated by my contract, in ...
2
votes
1answer
305 views

Cancelled Transaction in MetaMask USDC leads to loss of funds

I had attempted to transfer 992 USDC from MetaMask to a Ledger Account but had decided to cancel the transaction. On cancelling, MetaMask reports that the cancellation succeeded, but my MetaMask USDC ...
0
votes
1answer
44 views

How to type-cast contract type to address type?

Contracts can be explicitly converted to and from the address type. In solidity docs, it's mentioned that the contracts can be converted into an address type. But when I try to do so the compiler ...
0
votes
1answer
39 views

Error: Member “send” not found or not visible after argument-dependent lookup

I am trying to compile the following smart contract: pragma solidity ^0.5.1; contract Governmental{ uint constant TWELVE_HOURS = 12; function lendGovernmentMoney ( address buddy ) public ...
1
vote
0answers
15 views

Getting INVALID_ARGUMENT error when passing zero to a view function with a parameter of type address?

I recently upgraded to solidity 0.8.1 from 0.4.21. I have a view function in my contract with an address parameter. In the past I could pass 0 for this argument and that would be written to the ...
1
vote
1answer
114 views

How is it possible for Centre and the like to blacklist Ethereum addresses when they themselves are not miners/validators?

There is no shortage of the news on stablecoin censorship, in particular blacklisting of Ethereum addresses: Tether has been blacklisting Ethereum addresses that hold USDT for a couple of years now—...
0
votes
1answer
43 views

Contract Polymorphism based on address type cast issue

I am new to solidity and having difficulty understanding polymorphism and address typecasting of contracts. I am passing the address of child_1 contract to getChild2Value(address adr) which type cast ...
0
votes
0answers
148 views

In uniswap v2 periphery, how does the contract fetch token pair address?

function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(...
1
vote
0answers
61 views

Recover Lost Funds from Botched ETH Deposit Without Access to Private Keys?

I'm using the wei approach (4 right-most zeros) as a marker to track user deposits on my site. In short, every user on the site is told to append a custom amount of "wei" to every deposit ...
1
vote
1answer
107 views

How do I retrieve funds sent to wrong address that doesn’t exist [duplicate]

I sent some funds to my MEW wallet but I fat fingered the address and sent it to a different address that does not seem to exist. How do I claim that address to retrieve funds I see sitting in the ...
0
votes
2answers
53 views

contacting an address possible?

this might sound stupid for some, maybe even hilarious, have a laugh but please be kind when replying: the question: is there a way to contact or send a message to an ETH-address? my issue: I only ...
1
vote
0answers
42 views

How to obtain the implementation address from an upgradeable proxy smart contract?

Is there any way to externally obtain the current implementation address of a proxy that doesn't involve interacting actively with it (e.g. calling a transfer or approve function, i.e. without using ...
0
votes
2answers
80 views

Can Ethereum wallets be deleted for fraud?

Stellar Foundation, who created the Stellar Lumens coin (XLM), are able to shut down XLM addresses that engage in fraud. Stellar scammers often send small payments to other XLM wallets at random with ...

1
2 3 4 5
13