Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
13 views

How to find official smart contract addresses

Is there a directory somewhere that references official projects smart contract addresses ? I can't find a reliable way for finding smart contract addresses of public projects. The only solution I ...
0
votes
0answers
12 views

An ERC-1151 with two kinds of tokens, how to number them?

I have a potentially infinite set of each of the two kinds of tokens: seller tokens corresponding to Ethereum addresses; merchandise tokens corresponding to small uint256 values (item IDs). What is ...
1
vote
1answer
21 views

ComponentDidMount doesn' detect Metamask change account

I'm quite new to Web3 and Metamask and would like to ask how should I change the basic componenDidMount of the React truffle box so that it can detect and change accounts when I'm switching an account ...
0
votes
0answers
40 views

Gas requirement is infinite for the function

pragma solidity ^0.5.9; contract kyc2{ bool public isallowed; // Structure of customer struct customer{ string custname; ...
0
votes
3answers
30 views

Get a blank address

I have a little problem with my code. I'm trying to follow who are the current sender and the previous sender of a transaction respectively with the variable currentSender and lastSender, and then ...
2
votes
0answers
200 views

How to select a different Metamask address when using Uniswap?

I want to use Uniswap with my hardware wallet. So I go into my Metamask wallet, connect to my hardware wallet, I see my coin balance, then I open Uniswap. The trouble is that Uniswap is showing an ...
0
votes
0answers
34 views

Splice an Address

So in javascript I can take a string such as yourString[7] and get the 8th character within that string returned to me in string format. I want to take the last character in an Ethereum address, be an ...
0
votes
0answers
19 views

Can a smart contract create a wallet address?

Say I'm writing a staking smart contract (Staking Contract) but I don't want it to be taken advantage of by whales (ie YVault) so I would like to limit the deposit amount per address to 1000 eth. ...
0
votes
1answer
29 views

Understanding addresses of contracts (when they deployed twice)

I just have a quick question about addresses of contracts. If I want to make a contract to transfere tokens, how do I get the correct addresses of the token I want? For Exsample: function transfer() ...
0
votes
0answers
39 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
0answers
14 views

truffle solidity unit test modifiers: How do you test modifiers dependent on the sender account?

QUESTION: How do you write unit test code that would test that a non-owner can't execute a function modified by a requirement that they be the owner using in solidity and truffle? I am trying to write ...
0
votes
1answer
16 views

How msg.sender address gets generated in smartcontract?

msg.sender (address): the sender of the message (current call). Considering a scenario where a user uses a smart contract and try to perform a transaction. For that particular user msg.sender is the ...
0
votes
1answer
20 views

How can a Smart Contract pull an amount of Ether equal to its own balance from an External Account?

I'm writing a 2 Player Game. Rules: Player 1 must place a bet (and send some ether to the contract). Then, Player 2 must match the bet placed by Player 1, and send the same exact amount of ether to ...
0
votes
1answer
13 views

How much Ether does a Smart Contract Address hold before a Payable Instantiation?

The following code always reverts to "Contract must be empty". But shouldn't address(this).balance == 0 if the contract hasn't even been instantiated yet? Maybe since the contract doesn't ...
0
votes
0answers
35 views

Can a new deterministic address be generated with only an Ethereum public key?

BIP-32 defines a way to generate a new address with only knowledge of only the public key for that wallet Deterministic wallets ... permit schemes where one can calculate the public keys without ...
0
votes
1answer
37 views

How do I get a list of tokens held by an Etehereum address?

TL;DR: wanted: a method that receives an address as a parameter and returns an array of token names/contracts/balances held by address. I'm aware of the fact that Etherscan API has a method allowing ...
0
votes
1answer
20 views

When using mapping, why use an address over bytes32?

From an end user standpoint, they will never want to use the address for searching for mapped data when they could just submit a username for function parameters, so is there any specific reason why ...
0
votes
1answer
52 views

how different users write their data in ethereum network?

How a number of blockchain users save their data in the blockchain network using ethereum. Meaning more than one user sends his data using Python to save it in blockchain networl ?? How do I ...
0
votes
2answers
70 views

How do I give every user Ethereum an address and does it affect security

I have a project with Ethereum Blockchain the users send the data to the server and the server writes the data in the blockchain network My question is how do I represent the server in the smart ...
0
votes
1answer
17 views

What is the difference between coinbase address and normal address?

i am unable to find the difference between these two addresses. Do coinbase address also change after each transaction?
0
votes
1answer
68 views

Invalid address

I deployed my contract in ganache. When I was started to call a function with two arguments I started getting an error. I used an address from ganache. Error: invalid address (arg="user", ...
1
vote
1answer
34 views

eth_getLogs was only return erc20 tokens

i have used below command to get every logs on the special blocks but its only return erc20 token logs and ethereum transactions was not listed. my geth command: curl --data '{"method":"eth_getLogs",...
0
votes
1answer
29 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":...
1
vote
1answer
33 views

Someone Please Explain this “The concept of payable and non-payable addresses only exists at compile time not after the contract is compiled” [duplicate]

Actually I was reading this Answer https://ethereum.stackexchange.com/a/64109/55286 . And this person says The concept of payable and non-payable addresses only exists in the Solidity type system at ...
0
votes
0answers
17 views

function not found or not visible

I am trying to test different ways of invoking methods of other contract i.e. through an object (works) and through the address (not working). pragma solidity ^0.5.1; contract test1 { function f(...
0
votes
0answers
34 views

Ethereum address(generated) and ecrecover computed address is not matching

I created the Ethereum address by following the below steps . 1. Generated a public key(ECDSAsecp256k1) from HSM. 2. Generated a Keeccak256 hash of Q point of ECPublicKeyParameters ...
0
votes
1answer
24 views

Reference Smart Contract Address in Smart Contract

Is there a way to know the address of the smart contract you are writing before deploying it? Or somehow reference the smart contract address in the smart contract?
0
votes
1answer
37 views

Getting undefined for the length of the dynamic array

I'm getting undefined for the length of multiSig dynimic array, or votes in testing, no matter how many items are pushed into the array. FlightSuretyData.sol address[] multiSig = new address[](0);...
0
votes
0answers
36 views

if “address public x = tx.origin”, why does “require (tx.origin == x”) work and "require (tx.origin==tx.origin) not

Below is a contract that i have commented on, hoping to understand the logic of the arguments. Below in bold is the question in question. The .sol currently works fine. pragma solidity ^0.5.11; ...
0
votes
1answer
41 views

receive ether from address only after another address has sent ether

I have a two smart contracts. One receives ether(ReceiveEther) and the other sends ether(SendEther). I have it set so whoever made SendEther can only send to ReceiveEther if both contract creators ...
0
votes
1answer
28 views

Have contract creator address be the only address that can execute a function in contract

I have three contracts all interacting with each other. Contract "Receive Ether" can receive ether from one of two "Send Ether" contracts Contract "Send Ether First" should only be accessible by ...
0
votes
1answer
25 views

Disadvantages of creating a token that isn't ERC20 compliant

I would like to create my own token on ethereum blockchain. However, I was thinking of creating a token that lets users choose their own addresses. However, as explained here, it seems that would ...
0
votes
0answers
27 views

Web3: call the solidity function with the address can't return the expected outcome! (everyone can help?)

solidity code: address public administrator; constructor() public { administrator = msg.sender; } function isAdministrator(address _address) public view returns (bool) { return _address ==...
0
votes
0answers
19 views

Convert X509 ECDSA public key into Ehtereum Address

I have been given an X509 ECDSA public key that I want to use to assosicate data with. However, when I use Base64.getDecoder().decode(X509PublicKey) I end up with 88 bytes. What do I do to ...
0
votes
1answer
32 views

How to search for a dapp based on its address?

There are many websites that track dapps like http://dappradar.com or https://www.dapp.com. Unlike Etherscan one particular dapp doesn’t have to be registered on such specific website in order to be ...
1
vote
0answers
39 views

What's the correct address of SNX?

That is, the address of the token used as collateral in the Synthetix ecosystem. I found two addresses: 0xC011A72400E58ecD99Ee497CF89E3775d4bd732F 0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F The ...
0
votes
0answers
40 views

Transaction posted in “internal transactions” how do I add it to my wallet?

I transferred ETH from bitbuy to my ledger without realizing ledger did not support contracts. The transaction is posted on ether scan in internal transactions. I’ve contacted bitbuy and ledger both ...
0
votes
1answer
32 views

Error with this.balance

pragma solidity 0.5.9; contract Testing{ function participate()public payable{ uint winner = 9; require(msg.value == 0.1 ether); if ( winner==9) { ...
2
votes
1answer
45 views

How to Calculate How Long an Address Has Held A Token? (for paying interest/rewards)

I'm writing a smart contract function that rewards users some rate of interest/reward for holding my stablecoin over owning competitors (Dai, Tether, etc). What is the most efficient manner to ...
0
votes
0answers
45 views

No transfer of ether

My Code below ( Following an Online Course, absolute beginner here ^_^) pragma solidity >=0.4.17 <0.7.0; contract CampaignFactory{ Campaign[] public deployedCampaigns; function ...
0
votes
0answers
19 views

How to find out the contract address programmatically?

contract Test{ function foo() public { //How do I get the address of the Test contract here? } } I mean the address that is obtained after clicking the Deploy button:
0
votes
1answer
55 views

Is it possible that an Ethereum Address starts with 0x0

Is it possible that an Ethereum Address starts with a 0 on the first place after the hex prefix? For example: 0x0c01a1da70b4109be8789af5fd678183145dbe55
0
votes
0answers
16 views

Two or more address sender same transaction

Can a Ethereum transaction has two or more address as senders like Bitcoin transactions? My idea is use a smart contract to assign a transaction with two or more address, i.e. thinking in a ...
1
vote
0answers
36 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 ...
1
vote
0answers
17 views

getSender() is returning burn address

I'm not getting the same hash running this function function getMineDigest(uint256 challenge_number, bytes32 nonce) public view returns (bytes32 digesttest) { bytes32 digest = keccak256(...
1
vote
1answer
41 views

How can I Retrieve Wrong Transfer of Erc20 tokens [duplicate]

I mistakenly Transfer an ERC20 token to a scammer Like(I created the Token) then I saw the Write function on etherscan.io. Is it possible to transfer it back to my wallet or not and if it is possible ...
3
votes
1answer
39 views

How can anyone publish a contract to an address which has been generated in advance?

There is a contract which source code tells that the contract address had been generated in advance (there is a comment there), before the contract was uploaded to the network. The address beginning ...
0
votes
0answers
25 views

How to convert an address in string with correct case (upper or lower) of each symbol in Solidity? [duplicate]

Is there any recommended way to convert an address into string? Also it will be great if there is possible to safe the characters cases
0
votes
1answer
35 views

How can I extract a wallet address from event data?

I have a contract that returns event data including the sender's address: event Result( address indexed _walletAddress, string _name, uint256 _amount ) And in my Node.js app I try to ...
0
votes
0answers
46 views

web3.js - Subscribe multiple addresses and new coming address

I build ETH wallet app by using web3.js. My concept is the new ETH address will generate when user is registered on my app and when they send ETH from other address on another app or whatever to the ...

1
2 3 4 5
11