Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [addresses]

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

185 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
2 answers
388 views

Receive deployed contract address by transaction hash with JSON-RPC request

I want to receive deployed contract address by transaction hash. Transcation example - 0x996a683acd59a2ad17461f76ce0f387a89a5ac257ec5d667556219c6acc7f45a. As you can see this contract was deployed by ...
Dmytro Zarezenko's user avatar
4 votes
2 answers
942 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-...
ccconforti's user avatar
4 votes
0 answers
1k views

How to export extended (master) public key from MetaMask

I want to export extended public key for watch-only access to all ethereum addresses in the MetaMask HD wallet at once. It's very usefull for tracking of all portfolio/wallets in one place, especially ...
Artyom Krivolapov's user avatar
3 votes
1 answer
1k 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) ...
user avatar
3 votes
0 answers
338 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 ...
greenpolarbear's user avatar
3 votes
0 answers
268 views

How to transfer coins from Super Contract back to account

Some funds were mistakenly transferred to an ethereum based smart contract address instead to a personal address. Is there any way anyone (coin developers maybe) can transfer coins from this smart ...
sillybilly's user avatar
2 votes
0 answers
58 views

Get addresses of transfers from transactions Web3Py

I am facing issue while trying to retreive data from Goerli (basically, Ethereum). I am trying to fetch transaction from this contract. For every transaction it creates a new airdrop by creating a new ...
giacomomaraglino's user avatar
2 votes
2 answers
166 views

Best way to programmatically get an eth address

I am wondering what the best practice is to get an eth address and send it to an API. Ideally, I am looking for a simple interface to grab the eth address and send it to the API and then send that eth ...
AAMCODE's user avatar
  • 133
2 votes
0 answers
46 views

Understand transactions to multiple domains resolving to the same wallet address

If there are multiple domains resolving to the same wallet address, by watching the transactions of that wallet would it be possible to differentiate the transactions towards a domain or another? ...
Magofoco's user avatar
  • 250
2 votes
0 answers
148 views

A library for converting general cryptocurrency's private key to address

Is there a library on npm to convert a given private key and cryptocurrency's name to an address? E.g. Tron and Ethereum give different addresses when using the same private key: let addrEthereum = '...
kuco 23's user avatar
  • 278
2 votes
1 answer
92 views

How to effectively gather ETH across multiple accounts?

I have a online payments service which allows clients to pay with ETH. For each client paying, I generate a new ETH deposit address. When the funds arrive, I can then mark the clients invoice as paid, ...
rockstardev's user avatar
2 votes
2 answers
401 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....
Abed ja'fari's user avatar
2 votes
2 answers
1k 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?
zerb's user avatar
  • 31
2 votes
3 answers
1k 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 ...
Crypto_study's user avatar
2 votes
0 answers
187 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 ...
Sloth Man's user avatar
  • 496
2 votes
0 answers
336 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. ...
Petr Mensik's user avatar
2 votes
0 answers
409 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 ...
Rumplin's user avatar
  • 121
2 votes
0 answers
350 views

address recovery from signature

Sorry for the long question, I tried to keep it as standalone as possible. For my master thesis I'm analyzing historical data coming from price oracles contract events. In particular, the MakerDAO ...
St3p's user avatar
  • 51
2 votes
0 answers
865 views

Combine two addresses into one

I want Solidity code to define a function f that would map two Ethereum addresses A, B into a new address X = f(A,B) such that there is nearly zero probability that X is an already taken address (an ...
porton's user avatar
  • 1,804
2 votes
0 answers
194 views

Ecrecover wrong address is returned

I'm trying to validate signed data with ecrecover. The message is signed like this on the FE: return this.web3.eth.personal.sign( `${nonce}`, publicAddress ).then( ( signature ) => { ...
Jhonny's user avatar
  • 141
2 votes
0 answers
260 views

What exactly is an extended public/private key?

How do they differ per derivation level? For example is the extended public key of the master node equivalent for all intents and purposes as a depth 3 node's extended public key? Therefor can I ...
arshbot's user avatar
  • 387
2 votes
0 answers
205 views

How get public address from State Root leaf node (code inside)?

In article "Understanding the ethereum trie"is written that: For the state trie, the keys are ethereum addresses. So i obtain State Trie and in that trie I got Merkle Leaf node: ['9:', ' LEAF ...
Gudsaf's user avatar
  • 317
2 votes
2 answers
825 views

How to programmatically generate sub addresses using the root address in hd wallet?

And without using the private key. I've been digging into the ConsenSys's eth-lightwallet, although it uses a derived private key to generate the address which would expose the root private in danger. ...
Yuanfei Zhu's user avatar
1 vote
0 answers
14 views

How is the address of an Base contract computed?

I'm curious when i see some fantastic projects, so I'm doing some experiments to find out the method which used by Base to generate the contract address. Tried with two different methods, and I've ...
Spencer's user avatar
  • 11
1 vote
1 answer
11 views

I am trying to build a p2p energy transaction

I am trying to build the p2p energy transaction blockchain network. TypeError: "send" and "transfer" are only available for objects of type "address payable", not &...
Prithwi Chowdhury's user avatar
1 vote
0 answers
30 views

Nethereum listen to an event after send transaction

Solidity code for creating a new contract calling createRainfallPolicy: event PolicyCreated(address _policy, string _insuredId); function createRainfallPolicy(/*Params*/) public { RainfallPolicy ...
Farceg's user avatar
  • 11
1 vote
0 answers
38 views

Polygon Top addresses Polygon chain vs Ethereum chain

If I check Polygon top addresses on Polygon chain, I see the following list on https://polygonscan.com/accounts. With top1 address 0x0000000000000000000000000000000000001010 containing 9,070,304,832....
mindaugasj's user avatar
1 vote
0 answers
29 views

How do I conduct Presale off chain? Keeping the address and the amount of coins purchased

I'm creating a presale website and a presale coin in solidity. How do I keep tract of the poeple who bought it something like whitelisting right
jacobs david's user avatar
1 vote
0 answers
22 views

How to get any token contract address via network request?

is it possible to get any token contract via network request? for now I've found this repo https://github.com/ethereum-lists/tokens/tree/master/tokens/eth but still the network request way would be ...
Eugene1111's user avatar
1 vote
1 answer
49 views

How to get metamask address with infura?

I am very new to the blockchain programming. I installed the metamask browser extension on my google chrome. I funded it everyday through Alchemy. Now I am working on a Laravel project which involves ...
pheromix's user avatar
  • 125
1 vote
2 answers
336 views

A quick way to check if there are transactions at an address

I need to frequently check a large number of addresses for transactions on them (i.e. whether the address is active) and do it as quickly as possible. I plan to download a dump of addresses with ...
Cosmo773's user avatar
1 vote
2 answers
951 views

Are there any data sets available for download of all addresses that have been used?

Since etherscan indexes all addresses that have been involved in any transaction i was wondering if such a data set is available for download anywhere? I cant find anything on etherscans website and ...
CathalMF's user avatar
  • 283
1 vote
0 answers
29 views

Using interfaces as function parameters in solidity

Is it recommended to use contract interfaces as function parameters in solidity against using address. like... function doSomething (IERC20 token) external { ... } rather than function doSomething (...
Michael Amadi's user avatar
1 vote
0 answers
95 views

Why is the TransactionByHash function in the go-ethereum client unable to return the sender?

I learned how to get the sender's address from this question. JSON-RPC returns a result with a from field, which we can unmarshal in our struct. But I'm curious why go-ethereum didn't return ...
user109485's user avatar
1 vote
0 answers
22 views

How is the the net probability mentioned in EIP-55 calculated?

In EIP-55, it says: the net probability that a randomly generated address if mistyped will accidentally pass a check is 0.0247% I am curious about how this probability is calculated and tried to ...
Philip's user avatar
  • 11
1 vote
0 answers
300 views

How are multiple account addresses derived from a single public key?

The following is an except from Mastering Ethereum, but how you can you have multiple accounts in a wallet like MetaMask that manages a single key pair? Private key k: k = ...
Matthew Cruz's user avatar
1 vote
0 answers
239 views

Getting tokenID from wallet address in ERC721

I'm fairly new to solidity and especially token contracts, so please correct me if I'm missing something obvious. I am currently working on my own implementation of ERC721 token (using ...
Vladislav Repinskiy's user avatar
1 vote
2 answers
153 views

comparing addresses to determine "ownership" of a contract not working as expected

I am trying to write a function to determine if the address msg.sender is the same address as the wallet that deployed the contract. I know that this is typically done via the the OpenZeppelin Ownable ...
aaron's user avatar
  • 111
1 vote
0 answers
722 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 ...
MagHatashi's user avatar
1 vote
0 answers
38 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 ...
pardis.ti's user avatar
1 vote
1 answer
839 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 ...
Lorenzo Battistela's user avatar
1 vote
0 answers
54 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", "...
David J.'s user avatar
1 vote
1 answer
736 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('...
hc0re's user avatar
  • 131
1 vote
1 answer
96 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 ...
Skuser's user avatar
  • 11
1 vote
2 answers
309 views

Deploy address error Remix Solidity contract flashloan

I'm learning Solidity. Trying to implement this contract: Flashloaner.sol pragma solidity =0.6.6; import './UniswapV2Library.sol'; import './interfaces/IUniswapV2Router02.sol'; import './interfaces/...
AM H's user avatar
  • 11
1 vote
0 answers
615 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, ...
cgeopapa's user avatar
1 vote
0 answers
244 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 ...
Newtothescene's user avatar
1 vote
0 answers
273 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 ...
DigitalJedi's user avatar
1 vote
1 answer
195 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 ...
Baxter Cooper's user avatar
1 vote
0 answers
24 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 ...
porton's user avatar
  • 1,804