Questions tagged [addresses]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 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
15 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
18 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
12 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
25 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
32 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
18 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
48 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
64 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
48 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
30 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
20 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
32 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
16 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
31 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
22 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
35 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
35 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
26 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
18 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
30 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
26 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
29 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
40 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
39 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
34 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
35 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
22 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
39 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
vote
1answer
56 views

Generating multiple deposite address for one account

I want to create something like a Crypto exchange, in which I need to generate different unique deposit addresses for each user, so they can send funds to their accounts while I can keep track of how ...
0
votes
1answer
31 views

How to call function via interface from another contract when calldata type is used

I have declared the following interface: interface Test { function airDropMultiple( address[] calldata recipients, uint[] calldata tokenAmount ) external ...
0
votes
3answers
49 views

If I use a factory contract to create a new contract, does it show that the factory contract created it in the blockchain? [closed]

I am not sure if it would show my address or the factory contract's address (or both).
6
votes
1answer
122 views

Limit of address creation using single mnemonic

How many Ethereum address can be created using a single mnemonic for Ethereum using derivation path?
0
votes
1answer
42 views

If Wallet and address generated using EthHDWallet, can we get its recovery using ethereumjs-utils/hdkey getWallet() method by provideing seed?

Generated wallet address using: let mnemonic = request.body.seed; const wallet = EthHdWallet.fromMnemonic(mnemonic); let address = wallet.generateAddresses(1); console.log(wallet, address); How can ...
0
votes
1answer
30 views

Why HD wallet instance returns two xpub-xpriv key pairs inside Root and HDKey?

I have implemented address generation using HDWallet as shown in the snippet below: let Seed = generateMnemonic(); const wallet = EthHdWallet.fromMnemonic(Seed); console.log("Wallet" + JSON....
1
vote
1answer
47 views

how to be notified about incoming transactions instantly?

I'm creating a platform which users are able to receive ETH on their own wallets (addresses). They will give the addresses to others, but the question is how can I be notified that new transactions ...
2
votes
1answer
76 views

Execute transaction Approve directly against contract address (without ABI)

Solved For now, you will always need the ABI to execute a call against the ethereum network with web3. A simple way is to reconstruct the function you wish to execute is to, either create a separate ...
0
votes
1answer
41 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
52 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 ...

1
2 3 4 5
11