Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 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 ...
user avatar
  • 11
1 vote
1 answer
83 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 ...
user avatar
19 votes
2 answers
11k 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, ...
user avatar
  • 1,333
2 votes
0 answers
138 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. ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
2 votes
0 answers
89 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 ...
user avatar
  • 121
0 votes
2 answers
84 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!
user avatar
0 votes
1 answer
3k 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: ...
user avatar
  • 73
1 vote
0 answers
22 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 ...
user avatar
  • 1,334
2 votes
1 answer
551 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 ...
user avatar
0 votes
1 answer
165 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 ...
user avatar
0 votes
1 answer
349 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 ...
user avatar
  • 1,215
1 vote
0 answers
94 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 ...
user avatar
2 votes
1 answer
395 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—...
user avatar
0 votes
1 answer
377 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 ...
user avatar
1 vote
0 answers
83 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 ...
user avatar
  • 171
1 vote
1 answer
174 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 ...
user avatar
  • 11
0 votes
3 answers
1k 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 ...
user avatar
  • 11
2 votes
0 answers
182 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 ...
user avatar
0 votes
2 answers
179 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 ...
user avatar
0 votes
1 answer
259 views

Multiple receiver addresses for a single private key possible?

I'm looking at the difference between bitcoin and Ethereum wallets, and I'm confused about this part: It seems that a bitcoin wallet can have multiple receiver addresses: In my mind this translates to ...
user avatar
1 vote
1 answer
1k views

when msg.sender is the owner?

how do I know if the msg.sender is the owner (the person that deployed) of the contract or a random address that interacted with the contract? in this case for example: address payable owner = ...
user avatar
  • 51
0 votes
1 answer
26 views

any 3rd party service that can get all transaction?

3rd party service recommended have any 3rd party service that can get all transaction of address? because from my research the web3 cant get the full transaction by account.
user avatar
  • 1
0 votes
0 answers
245 views

How can I create an ethereum wallet which can show many addresses balance?

I'm looking for a wallet which can scan many ethereum addresses balance,(like electrum for bitcoin). I need to import 200 (or more) eth addresses and scan their balances include their tokens(if funded)...
user avatar
2 votes
1 answer
331 views

How is this address a contract in kovan and address in mainnet

0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa is the address for kovan DAI. However this is an actual address on the ethereum mainnet. How is this possible? How is the private key for this address ...
user avatar
  • 113
2 votes
0 answers
49 views

events and relationships between smart contracts and oracle smart contracts [closed]

How to subscribe a web3j client node to a smart Oracle contract event? Do I need the Oracle contract address?
user avatar
4 votes
1 answer
3k views

Uniswap v2 pair before liquidity add

I have a token contract and I want to add liquidity to Uniswap (mytoken + ETH). Before that, I would like to know the pair address in order to set it in my contract. Is it possible to create a pair on ...
user avatar
  • 61
1 vote
1 answer
538 views

How to generate unique ETH deposit address for ecommerce or payment processor?

Example of a payment processor or an ecommerce website. I would like to generate unique ETH address for each transaction. I'm genuinely curious what is the the best way of doing it? Potential solution ...
user avatar
1 vote
1 answer
266 views

Why cast address to address?

In defi contracts, I see codes like this address public constant dai = address(0x6B175474E89094C44Da98b954EedeAC495271d0F); What's the point of casting an address to address? Or is this just messy ...
user avatar
1 vote
0 answers
86 views

Deriving a Bitcoin Address from Ethereum Private Key

There have been many answers about how to derive an Ethereum Address from a Bitcoin private key, but a curious problem has led me to ask how one would do the reverse. I'm sure it's possible because ...
user avatar
  • 1,628
8 votes
1 answer
13k views

how to get list of transactions history about specific contract address using web3?

I really don't know how to get a list of transactions history about specific contract address using web3.py and I use Infura HTTPProvider I just have only one 'contract address'. Can i get information ...
user avatar
  • 83
3 votes
3 answers
722 views

Simple way to find the exact address / transaction by the part of the address / transaction hash?

Imagine I have only a part of the address, for example, 0xa2793n. The rest of the address is unknown. Is there any indexer, that stores this information in any suitable format, so I can find the list ...
user avatar
0 votes
2 answers
31 views

How to check if a particular address is already present in an array

I know a similar question has been asked before but I want to understand where am I going wrong in terms of logic for the code below. I am building a lottery contract where if an address has been ...
user avatar
3 votes
1 answer
987 views

TypeError: push is not detected as a function for address payable dynamic array

I'm trying to add the manager address to the playes array. I get the following error: TypeError: Member "push" not found or not visible after argument-dependent lookup in address payable[] ...
user avatar
  • 223
1 vote
1 answer
566 views

How to find official smart contract addresses

Is there a directory somewhere that references official projects smart contract addresses ? I can't find a reliable way for finding smart contract addresses of public projects. The only solution I ...
user avatar
1 vote
1 answer
420 views

ComponentDidMount doesn' detect Metamask change account

I'm quite new to Web3 and Metamask and would like to ask how should I change the basic componenDidMount of the React truffle box so that it can detect and change accounts when I'm switching an account ...
user avatar
0 votes
0 answers
965 views

Gas requirement is infinite for the function

pragma solidity ^0.5.9; contract kyc2{ bool public isallowed; // Structure of customer struct customer{ string custname; ...
user avatar
0 votes
3 answers
47 views

Get a blank address

I have a little problem with my code. I'm trying to follow who are the current sender and the previous sender of a transaction respectively with the variable currentSender and lastSender, and then ...
user avatar
3 votes
2 answers
7k views

How to select a different Metamask address when using Uniswap?

I want to use Uniswap with my hardware wallet. So I go into my Metamask wallet, connect to my hardware wallet, I see my coin balance, then I open Uniswap. The trouble is that Uniswap is showing an ...
user avatar
  • 61
0 votes
0 answers
64 views

Splice an Address

So in javascript I can take a string such as yourString[7] and get the 8th character within that string returned to me in string format. I want to take the last character in an Ethereum address, be an ...
user avatar
0 votes
1 answer
168 views

Understanding addresses of contracts (when they deployed twice)

I just have a quick question about addresses of contracts. If I want to make a contract to transfere tokens, how do I get the correct addresses of the token I want? For Exsample: function transfer() ...
user avatar
  • 111
3 votes
2 answers
428 views

How do I put an Ethereum address in an HTML link?

I'm sure I've seen this done, but I cannot for the life of me remember where. I'm writing a simple HTML page, and on it I'd like to have an Ethereum address as a clickable link, so people with Web3.0-...
user avatar
0 votes
1 answer
254 views

How msg.sender address gets generated in smartcontract?

msg.sender (address): the sender of the message (current call). Considering a scenario where a user uses a smart contract and try to perform a transaction. For that particular user msg.sender is the ...
user avatar
  • 359
0 votes
1 answer
580 views

How can a Smart Contract pull an amount of Ether equal to its own balance from an External Account?

I'm writing a 2 Player Game. Rules: Player 1 must place a bet (and send some ether to the contract). Then, Player 2 must match the bet placed by Player 1, and send the same exact amount of ether to ...
user avatar
0 votes
1 answer
43 views

How much Ether does a Smart Contract Address hold before a Payable Instantiation?

The following code always reverts to "Contract must be empty". But shouldn't address(this).balance == 0 if the contract hasn't even been instantiated yet? Maybe since the contract doesn't ...
user avatar
1 vote
1 answer
6k views

How do I get a list of tokens held by an Etehereum address?

TL;DR: wanted: a method that receives an address as a parameter and returns an array of token names/contracts/balances held by address. I'm aware of the fact that Etherscan API has a method allowing ...
user avatar
0 votes
1 answer
83 views

When using mapping, why use an address over bytes32?

From an end user standpoint, they will never want to use the address for searching for mapped data when they could just submit a username for function parameters, so is there any specific reason why ...
user avatar
0 votes
1 answer
72 views

how different users write their data in ethereum network?

How a number of blockchain users save their data in the blockchain network using ethereum. Meaning more than one user sends his data using Python to save it in blockchain networl ?? How do I ...
user avatar
  • 7
0 votes
2 answers
121 views

How do I give every user Ethereum an address and does it affect security

I have a project with Ethereum Blockchain the users send the data to the server and the server writes the data in the blockchain network My question is how do I represent the server in the smart ...
user avatar
  • 7
0 votes
1 answer
58 views

What is the difference between coinbase address and normal address?

i am unable to find the difference between these two addresses. Do coinbase address also change after each transaction?
user avatar

1 2 3
4
5
15