Questions tagged [addresses]

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

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

Total Unique Addresses Count of Ethereum Classic

I need to find an API giving the total number of unique addresses used on the Ethereum Classic blockchain. For example, the following API provides it for Ethereum: https://etherscan.io/chart/address ...
1
vote
1answer
10 views

Execute transaction Approve directly against contract address (without ABI)

await this.state.currentAddress.methods.approve("0x8b4a5682189361ce56702260051900f74d76e08b", amount).send({from: this.state.accounts[0]}); I have the following line in react. It is how I think I ...
0
votes
1answer
18 views

Problem with understanding Buyer address

My account address on Remix IDE is 0xCA3…a733c and wallet address is 0x147…C160C. Following is my code obtained from Solidity Tutorial. In this code, buyer address is passed as an argument. I have got ...
0
votes
1answer
9 views

Difference between account, wallet and deployed addresses: Remix IDE & Code

When I am executing the program on the remix IDE (got from internet), it asks me the address, _wallet, which I am passing in the constructor. Remix IDE shows me 3 addresses: Account, Deploy _wallet ...
0
votes
1answer
198 views

Recover public key from transaction signature

I have this transaction: { "blockHash": "0x163ad564b32bf17db9262391c2c9a5f191e4fd0b098ae5ce9d2e3e7dcde4bd70", "blockNumber": "0x2", "from": "0x55d40a83b8445c004df5964ce4a0e261b599c01a", "gas":...
38
votes
4answers
16k views

Get public key of any ethereum account

Can I somehow get the public key of an ethereum account knowing just the corresponding ethereum address (e.g. 0x54dbb737eac5007103e729e9ab7ce64a6850a310)?
1
vote
1answer
72 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, ...
1
vote
1answer
44 views

Different address make same signature for one message

Is it possible two different wallets (address) make the same signature for one message? I have one message: '...
1
vote
1answer
23 views

tracing new address on new wallet in Ethereum [closed]

I am just wondering how the new addresses are anonymous in Ethereum. Suppose that I have a wallet A including many addresses on it. Then I have a new wallet, say wallet B, and opening new address on ...
0
votes
1answer
245 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; }...
1
vote
1answer
58 views

Which contract's address?

In Etherscan, it is easy to find a contract. For example here is an example: https://etherscan.io/address/0x80fB784B7eD66730e8b1DBd9820aFD29931aab03#code The web page says that the contract address ...
1
vote
1answer
511 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: '...
1
vote
1answer
460 views

Is creating new account per unique user OK in Ethereum?

When using Bitcoin one can generate new address per user of service and save pair (address -> userId), so it is always obvious which specific user sent coins. Also, all these coins are stored in the ...
2
votes
2answers
527 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. ...
0
votes
2answers
123 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
2answers
717 views

How to test contract with multiple accounts / addresses in truffle?

I want to test my truffle contract with multiple msg.sender addresses. Like "the first user sell token, the second user buys this token". For one address I simply write something like contract.buy....
0
votes
2answers
30 views

How to find the coin/token type of crypto payer in Ethereum blockchain?

I'm new in Ethereum based crypto concepts. I would like to know how can I differ the incomming crypto amounts based on their orginal token type? Imagine I have an address on Ethereum blockchain. ...
1
vote
1answer
1k views

How to get the balance of a contract using web3.js?

I have deployed a contract as follows and determined its balance to be 5000 wei (value: 5000): const thisContract = new web3.eth.Contract(abi); thisContract.deploy({ data: bytecode, ...
2
votes
4answers
496 views

How to implement a watching wallet for thousands/millions of addresses

I need to check for customers' deposits and need to scan for receiving transactions for those addresses for Ether and in next step ERC-20 tokens. What's the most efficient way to do this with go-...
1
vote
1answer
459 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 ...
1
vote
3answers
246 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?
1
vote
2answers
49 views

Reinstalled MetaMask, account lost?

I had 3 accounts under my MetaMask Chrome extension. One of them had some small deposit. I have reinstalled the extension and used seed phrase to get access again. However, I can see only one account (...
15
votes
2answers
5k views

What's the difference between 'address' and 'address payable'?

I saw a Solidity smart contract where some variables were declared with the type address and some were declared with the type address payable. What are the differences between the two? Do they store ...
0
votes
2answers
68 views

Correct ABI payload packaging to call another Contract's address

Let's suppose I have the two following contracts, Dest and Proxy: pragma solidity ^0.5.0; contract Dest { function foo(string memory name, string memory symbol, uint256 decimals, uint256 ...
0
votes
2answers
25 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?
112
votes
4answers
77k views

How are ethereum addresses generated?

What criteria does a valid Ethereum address need to fulfill? Is it just a random number in hexadecimal? Or does it need to be derived in a specific way, according to some cryptographic algorithms? ...
1
vote
2answers
661 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 ...
2
votes
1answer
20 views

Change a Checksum Address to Its Normal Hex Value

I know there are functions to convert hex address -> checksum address, but are there any to convert checksum address -> hex address?
4
votes
2answers
246 views

How to pop from (decrease the length of) a memory array in Solidity

I have a function that gets an address array from another contract, conditionally deletes the msg.sender from the array, then saves the new array back to that contract. Because the array backerList ...
2
votes
2answers
71 views

Is there any difference between address that have Smart Contract and “normal” one? [duplicate]

Is there any difference between address that have smart contract on it, and "normal" address (address that You can create private and public key pair)? For more context, this is the problem I'm ...
2
votes
1answer
59 views

Is any 40 character hex string a valid ethereum address?

I know an ethereum address is generated by getting the last 20 bytes of the keccak-256 hash of the public key, which is 40 hex digits. I also know, an address does not need to have transactions ...
3
votes
0answers
17 views

How to calculate vanity address using C? [duplicate]

I have a curiosity about tacking on zeroes to strings, and Ethereum addresses are no exception. I wrote my own python program, and it was too slow. I wrote the program at https://pastebin.com/hTFGiKzR ...
8
votes
1answer
3k views

Return Token Contract address on truffle deploy

I am trying to figure out how to return the address of a contract when I deploy it with truffle's deployer.deploy. So the goal is that when I deploy a contract that is a custom token, I want to ...
2
votes
2answers
58 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
1answer
44 views

What would happen to transfers to a contract address before creation?

If someone transfers funds to a contract address before I create the contract, what will happen to the funds when I create the contract? For example: Get address of future contract. Transfer funds. ...
0
votes
1answer
146 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
321 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 ...
18
votes
4answers
4k views

How does a contract find out if another address is a contract?

Is it possible, from within a contract written in Solidity, to check if a contract is placed on a specific address or if this address does not contain any code?
0
votes
1answer
27 views

Generating an address from a public key in C++

Example: Input key = 0x025f37d20e5b18909361e0ead7ed17c69b417bee70746c9e9c2bcb1394d921d4ae Output address = 0xd09D3103CcABfb769eDc3e9B01500Ca7241D470A I have been using an algorithm from keccak-tiny....
0
votes
1answer
135 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) ...
0
votes
1answer
14 views

Is it likely to receive more token airdrops to one of the original Ethereum addresses from the crowdsale?

Is it likely to receive more token airdrops to one of the original Ethereum addresses from the crowdsale? Hi there, I participated in the original Ethereum crowdsale and I used to store a certain ...
1
vote
0answers
11 views

Any idea how to add new contracts into drizzle react app using the address?

I have a react app which creates new contracts. lets say A creates B. I have the addresses of the newly created contracts of B. How do i add the newly created contracts of B using its address to ...
0
votes
1answer
17 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 ...
0
votes
1answer
30 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
80
votes
5answers
25k views

How is the address of an Ethereum contract computed?

How is the address of an Ethereum contract computed? What use cases are there for knowing a contract's address in advance?
11
votes
3answers
8k views

Difference between Ganache and Truffle

What is the difference between this two? I understand that Ganache is like a fake blockchain, but Truffle has that too ? What are the limitations of each and under which circumstance we use either ...
0
votes
0answers
45 views

Unable to Unlock Account Even After specifying allow-insecure-unlock

Software: Ubuntu on VirtualBox Update, tried putting two dashes, on allow-insecure-unlock, doesn't work solidity@solidity:~$ geth attach http://127.0.0.1:8545 --allow-insecure-unlock Incorrect Usage:...
0
votes
1answer
33 views

invalid implicit conversion from contract to address requested contract

I am using this function to create a new contract instance of Match contract which takes 4 parameters. However i am getting this error message "invalid implicit conversion from contract to address ...
0
votes
1answer
37 views

The method eth_sendTransaction does not exist/is not available - web3.py

I am trying to send data to the contract, but I am getting the following error: The method eth_sendTransaction does not exist/is not available This is the code: from web3 import Web3 web3 = Web3(...
0
votes
1answer
34 views

Solidity. Concatenate and hash two strings

Hi all I need tho sha256 two strings. I am new to solidity. This is what I've got: function addressToString(address _addr) public pure returns(string memory) { bytes32 value = bytes32(uint256(...