Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [addresses]

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

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

How can I implement redactable chain for ETH?

I am trying to research about Redactable blockchain so my question is how can I implement a Redactable chain in Eth if someone has some idea about it I will be thankful
2
votes
2answers
20 views

How to generate a new token for ERC1155?

Developing an ERC1155 contract, how to generate an address for a new token? I need to create an API function like function createToken() returns (address). How? Should I just use an incrementing-by-...
0
votes
0answers
19 views

Ethereum payment processor Nodejs

I'm working on a web project where I need to have the ability to accept crypto payments. Implementing bitcoin was fairly easy as there were api's whom allowed me to directly subscribe to a specific ...
2
votes
0answers
36 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 ...
1
vote
1answer
22 views

Invalid opcode when trying to pass address as parameter to contract

When I try to pass address as parameter to this addEmployee function it gives me this error: invalid opcode The execution might have thrown. Debug to get more information. modifier onlyOwner(...
0
votes
1answer
27 views

TypeError: Type contract Campaign is not implicitly convertible to expected type address [closed]

pragma solidity ^0.5.11; contract CampaignFactory { address[] public deployedCampaigns; function createCampaign(uint minimum) public { address newCampaignAddress = new Campaign(...
0
votes
1answer
26 views

Solidity. How to add an address to a mapping

I have this: contract Diary { string[] private facts; mapping (address => bool) approvedAddresses; address owner; constructor() public { owner = msg.sender; ...
4
votes
2answers
134 views

Common Gas Wallet for ERC20 Wallets?

We have a wallet structure where users send tokens to individual user wallet addresses generated for them, we then sweep all the funds in the user's wallets to a centralized pool. The individual ...
2
votes
1answer
28 views

How to transfer wei from a contract to a specific address?

I was making an auction system and I wanted to make sure that when someone bid higher the contract would return the money to the address of the previous bid. pragma solidity >=0.4.22 <0.6.0; ...
2
votes
3answers
124 views

How smart contract transactions work?

I read that smart contracts don’t have a private key, so they can’t sign a transaction. My question is: when a smart contract starts a transaction to an EOA, how are we sure that the smart contract ...
0
votes
1answer
34 views

Is there any API to create Addresss and wallet as well as make transfer for ETC (Ethereum Classic)?

There is balance checking, transaction list and transaction receipt getting APIs available for Ethereum Classic (ETC)? Is ETC coin is only available on Ethereum Classic or its listed block explorer ...
0
votes
1answer
76 views

I would like to 3 mappings

I am a beginner. I would like to 3 mappings I know 2 mapping looks like this: mapping (address => mapping (address => uint256)) public allowed; and my question is: is 3 mappings look like ...
0
votes
1answer
28 views

Why does etherscan show such unusual results for the creation of this specific contract?

Normally, when I browse for the address of a specific contract and then click the contract-creation transaction label, I get: To: [Contract 0x... Created] For example, consider the BNB contract at ...
0
votes
1answer
32 views

ICAP 34 characters long. What's this kind of ICAP?

My understanding is that an ICAP address will have 33 characters for Direct or 35 characters for Basic, thus I've generated some 34 characters long ICAP addresses using: helpeth keyGenerate In ...
1
vote
2answers
29 views

How to check if an address is an active contract in Vyper?

Often for security reasons I want to limit certain address parameters to non-contract addresses for certain functions in my contracts, ie. there are no code stored on the addresses passed in as ...
0
votes
1answer
25 views

One smart contract deployed on 2 nodes will have same address?

Let's get creation of a smart contract address out of the way: The address for an Ethereum contract is deterministically computed from the address of its creator (sender) and how many transactions ...
0
votes
1answer
13 views

Address Payable and New Contracts

The following compiles in 0.4.26, but not 0.5.0. The error is "Type contract CustList is not implicitly convertible to expected type address." I figure it's something with address payable, but I have ...
1
vote
1answer
37 views

How does EIP-55 prove a string is ACTUALLY a valid Ethereum address?

I wonder how EIP 55 check proves an address is actually an Ethereum address, or does it prove this at all? Am I missing an obvious point in Vitalik's code below from EIP 55? from ethereum import ...
0
votes
0answers
14 views

After generating Address, how to checksum it? [duplicate]

After generating address for example "0x8c1821a90ecce75ec2901633b2c9164cf9406b54" what is the algorithm to generate checksummed address to "0x8C1821A90EcCE75ec2901633b2c9164CF9406B54". Although, There ...
2
votes
1answer
92 views

0x0000000000000000000000000000000000000000 address behaviour

I have a question about the possibly strange behaviours of address: 0x0000000000000000000000000000000000000000 We know that: ETH + ERC20 tokens sent there are burnt Upon creation of a new smart ...
1
vote
1answer
14 views

Scope Issue: Not successfully storing accounts after using web3.eth.getAccounts()

I am having trouble with the following code: var accounts = [] let accounts = await web3.eth.getAccounts((error, result) => { accounts = result; console.log(accounts); }); console.log(...
1
vote
1answer
19 views

Find keyfile of an account

I have several accounts in my Geth wallet. I need to locate the keystore file of a given account but there doesn't seem to be any connection between the keystore file names and the accounts. How do I ...
2
votes
1answer
61 views

Convert address to string after solidity 0.5.x

After solidity 0.5.x release none of conversions from address to string appear to be working. I've tested all of them on remix and got errors like converting bytes to uint or something like this. ...
0
votes
0answers
30 views

The reasons behind using public/private and addresses?

I understand that we need a public/private key so anyone can sign a message and miners can verify the signature using the public key. But, In this Question Relationship between Ethereum Address and ...
1
vote
1answer
35 views

How can I send ether [duplicate]

Hey guys I am a beginer on Solidity. I write a function and try to send ether on remix accounts and check balances this accounts. But I can't connect accounts I think because when I check balance of ...
0
votes
2answers
100 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
1answer
72 views

Member “name” not found or not visible after argument-dependent lookup in string storage ref

I have code like this and I want to set my name, surname and age in my struct so I want to set them and get them using with my functions here's my code : pragma solidity >=0.4.0 <0.7.0; ...
0
votes
0answers
24 views

Are there any examples of ETH addresses that periodically send or receive funds at regular intervals?

I'm looking for any known ETH addresses that send or receive money at regular intervals. For example, once per day, an amount from a hot wallet might be sent to a cold wallet. Are there any widely ...
0
votes
1answer
58 views

member not found or not visible after argument-dependent lookup in mapping

pragma solidity >=0.4.0 <0.7.0; contract New{ mapping(address => string) public users; string name; address[] public userAddress ; //string[] public userNames; ...
0
votes
1answer
114 views

Type string memory is not implicitly convertible to expected type struct InsanFactory.User storage ref

pragma solidity >=0.4.0 <0.7.0; contract InsanFactory{ struct User{ string name; address myaddress; } mapping(address => User) public userStructs; ...
0
votes
1answer
15 views

Is possible for a contract to manage and hold different address and its balance for different erc20 tokens?

Imagine an exchange contract to store and handle different accounts for different buyers and sellers, it is possible for a contract to manage and hold different address and its balance for different ...
0
votes
1answer
155 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 ...
1
vote
1answer
106 views

Solidity: Convert from “bytes memory” to “address”

I'm using solidity 0.5.0 and when i try to compile my contract it's giving me this error Explicit type conversion not allowed from "bytes memory" to "address" my code is this: /// @dev get broker ...
0
votes
1answer
86 views

How to convert Postgres BYTEA format to Ethereum string address (PYTHON)?

Bytea (hex) is format of PSQL. It is used by many explorers/dapps/apps to store ethereum address. how to convert this format to Python String? By default it is read as a memory view. More on Bytea: ...
0
votes
1answer
60 views

How does one query the Ethereum ENS name service via an API endpoint with a JSON response?

Using the https://ens.domains/ is there a way to query the ENS name service using an API endpoint and get a JSON response? I want to be able to integrate these eth addresses into my application.
0
votes
2answers
20 views

web3js returns non-checksumed addresses!

Why does web3js 0.20.6 returns all-lowercase addresses on contract creation not a checksumed address?! How to deal with this trouble?
2
votes
1answer
26 views

Event and method different address type

This is my contract pragma solidity ^'0.5.2'; contract MyContract { address[] public contracts; event ContractCreated(address newAddress); constructor() public { } function ...
0
votes
1answer
50 views

how do etherscan get all the token balance of particular address?

I want to create service where just by providing address i can fetch all the token (erc 20 & erc721) balance just like etherscan for a private network? is there any way to do it by writing for ...
0
votes
1answer
22 views

Can I have a listener to cryptocurrencies / tokens reaching a specific address?

Let's say that there is an address called 0x1 There is another address called 0x2 which just released a new token called ABA. Is there a way to constantly listen for 0x1 to see if it receives ABA ...
0
votes
1answer
31 views

How to choose contract address and wallet address

When you start an ICO, to receive a fund from people for your ICO, how do you choose the contract address and your wallet address to receive ETH collected for your ICO? Thank you. And excuse me for my ...
0
votes
1answer
68 views

How can I push data to array when using mapping (address => address[]) mappingName?

What is the exact syntax to push data using the above given syntax?
0
votes
1answer
52 views

How do I get the address from a signature?

As stated in the question, I have the v, r and s values of a signature given and am trying to find the belonging address. All questions similar to this solved it by either using a solidity smart ...
0
votes
0answers
27 views

Why does return address(player) return a weird string?

I am trying to get the player's address through front end and when I run through the solidity function that should return the player's address, it would return ...
1
vote
1answer
59 views

Enigma “secret contract” and concealing transactions history: How is it possible?

Enigma protocol is a second-layer, off-chain network that aims to solve privacy issues in blockchain. However In Enigma blog, there is an article (Link to Article), explaining the secret contract, ...
0
votes
1answer
16 views

can I return an address from a contract interface instead of another contract?

for example i have a contract function that returns a contract, can I define an interface that calls that function, but only returns an address? contract foo { .... .... } contract bar { ...
2
votes
3answers
96 views

How to generate an ethereum address?

How an EOA, contract address can be achieved? What is an mechanism for generating these?
1
vote
1answer
140 views

Convert 64 byte public key to 20 byte address in Solidity

I am trying to convert a 128 characters hex encoded public key to an address in Solidity (0.5). For example the pubkey would be: ...
1
vote
1answer
53 views

How to generate multiple ethereum addresses using HDWallet?

const mnemonic= 'clown shiver beach wheel this mixture emotion illness fatigue amateur talent bitter' console.log(`0x${hdwallet.derive(`m/44'/60'/0'/0/0`).getAddress().toString('hex')}`) ...
1
vote
2answers
30 views

is account nonce network dependent?

In Ethereum, does Account nonce depend on network? I mean for same address on different network, will there be different nonce?
1
vote
2answers
71 views

I found 4 very similar wallet addresses. How is this possible?

These are the addresses: 0x7cB57B5A97Eabe94205c07890BE3C1aD31E486A8 0x7Cb57B5a97EaBe94205c07890bE4C1aD31E456a8 0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8 0x7CB57b5A97eabe94205C07890beaC1aD31E486a8 ...