Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
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, ...
2 votes
2 answers
205 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
2 answers
1k views

Which wallets lets you generate multiple ethereum addresses?

Is there a wallet that lets you generate multiple ethereum wallet addresses? I don't like the fact that I only use one address and that everyone can see what I have. Or are there other ways to keep ...
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....
2 votes
1 answer
206 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?
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, ...
0 votes
2 answers
328 views

Contract function returns address?

Learning ethereum, I am hoping this is an easy one. I wrote a simple test contract contract Mini{ uint balance; // constructor // runs once upon creation function Mini(){ balance = 1000; } ...
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 ...
0 votes
1 answer
267 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/...
1 vote
1 answer
951 views

How to have an address inside a solidity Struct?

My problem Suppose I have this struct: struct TextThatWorks { bytes32 text; uint reads; } How can I add a address variable to it? What I tried I tried simply adding address ...
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, ...
2 votes
2 answers
219 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
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() ...
0 votes
1 answer
539 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
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, ...
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 ...
4 votes
3 answers
7k views

Truffle migrate: store deployed contract address in variable

How can I store the address of a deployed contract into a variable of another contract, e.g. using a placeholder? contract One{ function One(){ } } contract Two{ address oneAdd = "Put ...
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 ...
3 votes
2 answers
433 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-...
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 ...
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 ...
0 votes
1 answer
828 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
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?
80 votes
9 answers
85k views

How can I check if an Ethereum address is valid?

I've read many times that you should never input an address by hand unless you want to accidentally send Ether into no-mans-land. I'd like to know what those checksums might be. Is there a way to tell ...
32 votes
5 answers
17k views

How to detect if an address is a contract?

I'm interested in knowing whether any particular address is a contract address or a standard address. There have been similar questions on the topic, but I'm not looking to detect whether an address ...
1 vote
1 answer
1k views

ERC20 tokens transactions' history from Ethereum node

I have a parity node. I developed a web3.js interface on top of it. I have APIs whose job is to fetch addresses' balances and transactions. Example response of transaction API: { tx_hash: '...
7 votes
2 answers
232 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 ...
0 votes
3 answers
5k views

Unused function parameter. Remove or comment out the variable name to silence this warning

I have a smart contact which have 2 owner address and 3 functions. my set functions is set a users with msg.sender and my getUser functions is returns name,surname and age and I want to add a admin ...
0 votes
1 answer
251 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 ...
0 votes
3 answers
321 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. ...
5 votes
2 answers
597 views

What are 'payable' state variables?

https://solidity.readthedocs.io/en/latest/solidity-by-example.html#simple-open-auction pragma solidity ^0.4.22; contract SimpleAuction { address payable public beneficiary; What exactly does ...
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?
0 votes
1 answer
318 views

Dealing with "Uncaught (in promise) Error: Provided address [object Promise] is invalid, the capitalization checksum test failed"

I'm, trying to connect a front-end to my smart contract but whenever I call the function from the UI I get this error: Uncaught (in promise) Error: Provided address [object Promise] is invalid, the ...
1 vote
3 answers
622 views

Transaction receiving ether from a contract address

Are transactions sending ether from contract addresses to normal addresses listed in block.transactions or are they not trivial to detect? If not in block.transactions than how to detect?
0 votes
1 answer
481 views

Nethereum: CallAsync return a wrong msg.sender

I write this simple contract: contract greeter { event LogSender(address sender); function getSender() constant returns (address) { LogSender(msg.sender); return msg.sender; }...
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 ...
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 ...
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 &...
1 vote
1 answer
1k views

MetaMask - RPC Error: Error: WalletMiddleware - Invalid "from" address

I'm trying to create a simple Dapp (via tutorial) which would allow me to send Ether from sender to receiver (via a contract with an address that automatically approves the transaction). The truffle ...
2 votes
2 answers
703 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. ...
1 vote
1 answer
273 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
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 ...
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)....
0 votes
1 answer
53 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 ...
1 vote
2 answers
759 views

Problem to use an address within a contract. Error: invalid address

I have a private blockchain. I am creating a contract and then I am calling a function that returns the main account. I have the error calling this function. This is the contract creation code: var ...
1 vote
1 answer
957 views

C# - Convert Ethereum ABI Address To String (Solidity)

I'm new to Ethereum so please excuse my ignorance. Ethereum seems to have an ABI serialization protocol called Solidity. The spec is here: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI ...
0 votes
1 answer
214 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/...
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 ...
0 votes
1 answer
52 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 ...
0 votes
1 answer
673 views

Initial ERC20 Token supply split into 2 or more hardcoded addresses

don't know if someone can help me, but let me explain my problem. For more transparency in my ERC20 token generation smart contract, I want to hardcode the Team Pool (0xA) and Crowdfunding Pool (0xB) ...

1
2 3 4 5
15