Questions tagged [addresses]

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

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

Whenever I am trying to enter an address in my input Field , it automatically changes to one particular address only

My input field code <input type="text" placeholder="Enter address" onChange={(e)=>oppaddrchange(e)}/> And my handler function const oppaddrchange = (e)=>{ console....
user avatar
  • 1
2 votes
0 answers
37 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, ...
user avatar
  • 131
0 votes
0 answers
10 views

Passing transaction origin address from one contract to another without use of tx.origin Solidity

I am currently working on a project that the user will buy/sell Contract A and receive another token from Contract B. Contract B is a crowdsale contract of a 0 value ERC20 token used as proof of ...
user avatar
0 votes
0 answers
15 views

push() Function not Working Solidity

//SPDX-License-Identifier:MIT pragma solidity ^0.7.0; import "./SimpleStorage.sol"; contract StroageFactory { address[] public SimpleStorageArray; function createSimpleStorage() ...
user avatar
0 votes
0 answers
13 views

Question about finding token addresses to insert into a .sol Contract function

Ok so I have a .sol Contract that is trying to find arb between 2 dexes I'm utilizing the Kovan Test Network - this is the function function estimateDualDexTrade(address _router1, address _router2, ...
user avatar
0 votes
1 answer
28 views

We sometimes refer to ETH as `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` on Ethereum, what's the equivalence of BNB on BSC?

I see lots of contracts refer to ETH as 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee on Ethereum, since there's not a token contract for ETH itself. So I wonder if the equivalence on BNB Smart Chain, ...
user avatar
  • 101
0 votes
0 answers
8 views

Web3.py create new account does not have "pre-fund" anymore?

I would like to ask, previously when creating the -> web3.eth.new.account to get Account[0] and I remember, that web3 does "Pre-Fund" the Account[0]? What is the command line? Or it does ...
user avatar
  • 1
0 votes
1 answer
14 views

How to Air Drop rewards to NFT Holders?

How can you know which users are still holding your NFTs? What if someone Mints an NFT and then at some point they sell/transfer it to someone else? How would you go about updating the holders then ...
user avatar
0 votes
0 answers
19 views

How to convert address to bytes in solidity? [duplicate]

I tried with this function, but it's not working, getting the same address input in output. function toBytes(address a) public pure returns (bytes memory b){ assembly { let m := mload(0x40) a ...
user avatar
0 votes
0 answers
18 views

How to send a "Address" from Javascript to Solidity Contract

Hi i have created frontend and working with web3js. Now what i am trying to do is: Updating the data in the contract. Add the address in the contract (So here in form i am asking the user to put the ...
user avatar
0 votes
0 answers
13 views

How to bypass the openzeppelin-contracts Address.sol check and "tx.origin == _caller"

I am trying to create a smart contract for to mint NFT and token for security purpose, but I often got stuck with the contract checking, does anyone know if I can bypass those checking?
user avatar
0 votes
2 answers
17 views

What is the site that shows all the tokens I own in my Ethereum 0x... address across all other L2 EVM compatible chains?

Is there a site that shows all the tokens I own in my Ethereum address along with all the L2 EVM compatible chains?
user avatar
0 votes
0 answers
7 views

What happens when you send crypto to an address that does not exist in the network? [duplicate]

What happens when you send crypto to an address that does not exist in the network? Let's say Ethereum address have the format of four numbers only like 1234 but I accidentally send some coins to and ...
user avatar
  • 1,353
0 votes
1 answer
37 views

Can a smart contract have multiple addresses?

Can a smart contract have multiple addresses? And I am not asking whether a smart contract can have other smart-contracts. What I am asking is, theoretically can a smart contract have multiple ...
user avatar
  • 1,353
0 votes
1 answer
24 views

How to generate and remember, or to be able to deduce, the private keys of a few millions of addresses?

Goal: generate a few millions addresses and remember or store the private keys of each of them in an easy manner. Using the most straighforward approach, that is, storing all of the addresses as &...
user avatar
0 votes
2 answers
10 views

Why there are people who want to have multi-accounts in Ethereum?

Why there are people who want to have multi-accounts in Ethereum? I notice that in the Ethereum ecosystem, more and more people own more than one account, what motivates them to create more than one ...
user avatar
0 votes
1 answer
54 views

How to format hex string to solidity address?

Say I have a hex string c4ef705a8a8f2db126b92013b4938230df2158b5 how can I format it as a solidity address using ethers js or another npm package to prepend 0x and correctly capitalise some of the ...
user avatar
  • 230
1 vote
1 answer
18 views

Solhint: Why should I avoid multiple calls of "send" in a single transaction?

function withdrawAll() public payable onlyOwner { uint256 _each = address(this).balance / 4; require(payable(t1).send(_each), "Account is being paid out"); require(payable(t2)....
user avatar
2 votes
1 answer
23 views

Solidity documentation: Are 39 or 41 digit long address literals allowed?

Solidity documentation here says that Hexadecimal literals that are between 39 and 41 digits long and do not pass the checksum test produce an error. Do they mean, "Hexadecimal literals that ...
user avatar
  • 41
0 votes
1 answer
31 views

Only getting 'Promise { <pending> } when calling getPair on the Quickswap Factory contract with ethers.js?

I'm attempting to get the pair address of the WETH/DAI pair on Quickswap on the Mumbai test net. I have this quick script: const ethers = require('ethers'); const Big = require('big.js'); const PATH = ...
user avatar
0 votes
1 answer
268 views

Convert/cast an address to uint256

Following these details on the values that make part of the calldata that goes into an L2 message in Arbitrum: https://developer.offchainlabs.com/docs/arbos_formats#l2-messages How do you convert/...
user avatar
  • 307
0 votes
3 answers
326 views

The same wallet address on the Mainnet Ethereum network and on the Polygon network. Are these two different wallets with two different owners?

I want to transfer some matic (Polygon network) to an Ethereum wallet address I know. But I don't know the address of this wallet on the Polygon network, I know its address on the Ethereum Mainnet. ...
user avatar
0 votes
0 answers
31 views

Creating a hundreds of wallet addresses via Infura and the like - where will the private keys get stored?

Let's say I wanted to generate new wallet addresses for my users on regular basis. That is, if I was to create hundreds of new wallet addresses via REST API of Infura or a similar service, where would ...
user avatar
0 votes
0 answers
13 views

Creating a hundreds of wallet addresses via Infura and the like - where will the private keys get stored? [duplicate]

Let's say I wanted to generate new wallet addresses for my users on regular basis. That is, if I was to create hundreds of new wallet addresses via REST API of Infura or a similar service, where would ...
user avatar
0 votes
0 answers
8 views

How do I accept deposits and withdraw funds without additional GAS fees?

Our project is supposed to accept payments in Ethereum and some popular altcoins, and it would probably be a good option to install some kind of open source wallet on the server, in the sense of not ...
user avatar
0 votes
1 answer
59 views

BIP32 Extended Public Key Generate Ethereum Address

BIP32 Extended Public Key How can I generate an address with node js? Is something like this possible
user avatar
0 votes
1 answer
28 views

Weird problem with address(this).balance and gas

I have a very simple contract, something like this: contract Test_Variable{ uint256 public variable; constructor() { variable = 100; } function balanceTest() public { ...
user avatar
  • 3
0 votes
0 answers
32 views

crawling last transactions

I am making a program to monitor who is sending ether to my wallet. I thought I could get the most recent blocks this way, but the repoFactory was empty. What could be the problem? i want to crawl ...
user avatar
0 votes
0 answers
98 views

How do I get Ethereum contract address from Etherscan API?

I have followed the documentation supplied here under "Get a list of 'Normal' Transactions By Address" : https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-normal-transactions-by-...
user avatar
0 votes
0 answers
19 views

Investigating an incomplete ETH address with 6 words or less

When investigating an incomplete ETH address on Etherscan we can write the first words and the search bar then autocomplete the rest and lists addresses starting with these words. But it does that ...
user avatar
0 votes
0 answers
55 views

when using swapExactETHForTokens, setting address_to as address(this) causes the swap to fail why? Yet external wallets work

ive been working on my dapp, fairly new to solidity, im trying to make a smart contract that provides a interface to buy tokens from Uniswap using ETH and then send the tokens back to my smart ...
user avatar
0 votes
1 answer
110 views

Telling contracts from EOAs using ethers.js

I'm trying to figure out whether a given address is: a contract an EOA unknown I know that only contracts can have code. Therefore, provider.getCode(address) returning anything but 0x tells me ...
user avatar
  • 376
0 votes
1 answer
88 views

Why is the method in receive() external payable{this.withdraw Funds();} not called in Solidity?

I wrote a smart contract that, when receiving money to my address, should automatically transfer 50% to the 1st wallet address, 25% to the second, 25% to the third. For some reason it doesn't do it ...
user avatar
  • 117
0 votes
1 answer
60 views

Problem in withdraw() function in Auction contract, !payable is used still its able to refund the amount of the lower bidders when we click withdraw

In Withdraw Function, !payable condition is given, but payable condition not given, still when we click withdraw, then we will get our money back if we dont have the highest bid pragma solidity ^0.8.4;...
user avatar
0 votes
1 answer
20 views

Building a MERN app with ability to push image to Ethereum blockchain

I am building a simple app that is like instagram but want to give the user the ability to push their image to the ethereum blockchain combined with a MERN stack. I do not want to use metamask for ...
user avatar
0 votes
0 answers
33 views

How to make it so that when money comes to the Metamask wallet, they are automatically redirected to this smart contract? [duplicate]

I wrote a smart contract on Solidity, which, when receiving money to its address, redirects 50% to the first wallet, 25% to the second wallet. How to make it so that when money comes to the Metamask ...
user avatar
1 vote
1 answer
42 views

How to transfer ethers from a contract to another SPECIFIC address?

I want to write a smart contract that, when receiving money, transfers 50% to a specific address of the first wallet (0x583031D1113aD414F02576BD6afaBfb302140225) and transfers 25% to a specific ...
user avatar
0 votes
1 answer
24 views

I am trying to write a smart contract for a defy-Bank as a project. i can't figure out why hasTransfered() function not getting executed?

Smart contract code: // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract AddressWallets { // variables address owner; uint funds; bool transferFund; ...
user avatar
  • 1
0 votes
0 answers
796 views

How to get the list of all Ethereum addresses (with AND without balance)

In order to make a full analysis of Ethereum's blockchain, I need a list with all the Ethereum addresses ever appeared. The size of this file does not matter. On internet I have only found the list ...
user avatar
0 votes
0 answers
32 views

Short Ethereum addresses in base64

recently I was given a file with some (proposedly) Ethereum addresses in it. To my suprise the addresses looked like this: 6W0uRUw0RbRbMAVaAH5iNWiTdzA= Byu1WPliGqxo5VCIZ0XNXX1pqe8= ...
user avatar
1 vote
0 answers
16 views

Is there a particular reason as to why evm adresses are only 160 bits and not 256 bits? [duplicate]

Is there a particular reason as to why evm adresses are only 160 bits and not 256 bits? Wouldn't that create a pigeon hole problem eventually? Is this solely to save 96 per addresses so to decrease ...
user avatar
0 votes
0 answers
18 views

Privilege for a list of addresses

I want to give free mints to people who owns an NFT from another collection. I can do it through importing interface of another contract and calling the balanceOf function with the related address, ...
user avatar
2 votes
2 answers
460 views

how to precalcuate the deployed contract address

// SPDX-License-Identifier: MIT pragma solidity ^0.5.16; import "https://github.com/Uniswap/v2-core/blob/master/contracts/UniswapV2Pair.sol"; contract TestERC20 { address public _pair =...
user avatar
  • 123
0 votes
0 answers
145 views

API for getting the total balance (net worth) of an address?

Etherscan can get the total net worth for all tokens of an address, ETH and ERC-20, e.g.: https://etherscan.io/tokenholdings?a=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 Other services like Zapper.fi ...
user avatar
  • 101
0 votes
1 answer
25 views

return a struct from a mapping of addres-struct

I'm trying to return a struct called Trainer from a mapping of addresses -> Trainer Is there any way to easily retrieve the Trainer struct from the trainersMap? struct Trainer { address owner; ...
user avatar
  • 1
1 vote
0 answers
115 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 ...
user avatar
0 votes
0 answers
15 views

Deleting elements in a mapping of mapping in Solidity

I'm using a Solidity mapping of mapping to manage associations between files and users in my application and deleting elements from it like this: mapping(address => mapping(address => uint)) ...
user avatar
  • 111
0 votes
2 answers
48 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 ...
user avatar
  • 101
0 votes
1 answer
67 views

Solidity Error :: "send" and "transfer" are only available for objects of type "address payable", not "address" [duplicate]

I'm getting error here :: "send" and "transfer" are only available for objects of type "address payable", not "address". function pickWinner() public{ ...
user avatar
  • 1
0 votes
0 answers
22 views

How to see number of wallet addresses on the Ethereum blockchain?

How to see number of wallet addresses on the Ethereum blockchain? Also list of all those wallets, or number of token contract addresses as opposed to wallets
user avatar

1
2 3 4 5
15