Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ether]

Ether (ETH) is the main internal crypto-fuel of Ethereum and is used to pay transaction fees.

0
votes
0answers
17 views

Purchase of ICO token in Fiat currency/ Bitcoin [on hold]

I want to launch my ICO, where you can buy tokens with fiat currency, ethereum and bitcoins. Suggest any help, How I can integrate it within a minimal time? Any Free API's Are available for the same?
2
votes
2answers
37 views

how to setup a ethereum private blockchain?

Does anyone know how to set up a private blockchain in ethereum network? is that possible to run a private ethereum node? I have seen forking of public blockchain like EOS into a private blockchain.i ...
1
vote
3answers
17 views

Is there anyway to seize an account from smart contract?

I creating a smart contract for manage loans and I am searching some way to make me sure when the borrower defaulted pay back the loan, seizing some percentage of ether from the guarantor's account. ...
0
votes
0answers
47 views

How can I store every credit or debit card payment transaction on an Ethereum blockchain? [on hold]

pragma solidity 0.4.25; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ ...
0
votes
0answers
13 views

Transferring crypto tokens [closed]

I have created a smart contract in remix IDE and deployed successfully, I need to transfer my token (From distributor wallet to users wallet) through my website. I have tried various d-apps it is ...
0
votes
0answers
13 views

Genearte error 'invalid sender' when doing send transaction using infura or roopsten

I am using following code to perform transaction web3 = Web3(HTTPProvider('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXX'))) print('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXXXX'...
0
votes
1answer
20 views

problem calling balanceOf from another contract

I try to learn solidity and i have a problem. I've created a base token and i want to call the balanceof method from this token in another contract. In Solidity Remix i get : call to BaseTokenBet....
0
votes
0answers
25 views

How to import Txhashes to ETH cold wallet?

I would like to import Txhashes to my cold ETH wallet. The tx's are done on a connected device and transferred securely via QR codes. I can do this with BTC in Electrum but have found no way of doing ...
0
votes
0answers
27 views

could n't find ABI constructor in my input data

I have developed the solidity code and need to verify the smart contract but I could not find Constructor Arguments ABI-encoded check the screenshots, i have developed in testnet
1
vote
1answer
35 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
0
votes
1answer
22 views

Decoding Hex value in solidity

I am trying to view values stored on my ethereum contract using ethereum wallet. Currently the values are being placed onto the contract in hex format. Is there a way to decode them on the contract so ...
0
votes
0answers
14 views

Error - received an error when i sent transaction

Error - received an error when i sent transaction but it seemed to go through no problem. a few mins later it came up insufficient funds. My account has a positive balance. receiving address of my ...
1
vote
1answer
19 views

Ethereum transaction fails in simultaneous calls

I am making two calls simultaneous call with a single wallet. First I am making a contract call then I am making a ether transaction call. The first call succeeds, but the next call fails. I got this ...
0
votes
1answer
17 views

ParserError: Expected primary expression

Following is my code: pragma solidity >=0.4.17; contract Lottery { address public manager; address[] public players; constructor () public { manager = msg.sender; } ...
0
votes
0answers
9 views

Can I send an ERC-20 token to my users even if though I have 0 ETH?

Let's say I have USDC erc-20 token and I want to send it to my user's ETH address. But I have 0 Eth. Can I send it? If not, what methods are there to bypass that requirement of having to always have ...
0
votes
1answer
25 views

solidity code warning in remix IDE

I am trying to create a smart contract using the but it is showing warning message in a string "Warning: Unused function parameter. Remove or comment out the variable name to silence this warning. ...
0
votes
1answer
20 views

Is it possible to have ERC20 token (A) own other ERC20 tokens (X, Y, Z)

I'm building a DAPP, where a user has one 'parent' ERC20 token and several other 'child' ERC20 tokens. So what I want is .... To have a parent token A, and that token owns the tokens X, Y and Z. In ...
0
votes
1answer
29 views

Etherscan “Write Contract” Tab - what is it for?

What is the purpose of the Write Contract Tab in Etherscan? For example, if you look up the QTUM Token Contract on Etherscan (https://bit.ly/2IsddkT) and then tap on the Write Contract TAB, you have ...
0
votes
0answers
17 views

If nG and 2nG are known how to find generator point G [migrated]

if in a curve y2 mod p = x3+ 7 mod p ( ecdsa-secp256k1) p=115792089237316195423570985008687907853269984665640564039457584007908834671663 G=...
0
votes
2answers
30 views

Error converting wei using promises in NodeJS

I am running this code on NodeJS application: let destinationBalanceWei = web3.eth.getBalance(process.env.DESTINATION_WALLET_ADDRESS).then(result => result.toString()) let destinationBalance = ...
0
votes
1answer
25 views

ParsedContract.sol:1:17: ParserError: Token incompatible with Solidity parser as part of pragma directive

Code : git clone https://github.com/dappuniversity/election https://github.com/dappuniversity/election/tree/2019_update Errors faced : Commands: Compile: truffle compile Migrate: ...
0
votes
1answer
29 views

how to find if a Tx hash is in pending state in ethereum mainnet after web3j fastTxMgr timeout

I am using QueuingTransactionReceiptProcessor() with callback accept(). DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH is 10 and POLLING_FREQUENCY is 15000. That gives nearly 3 min wait for network to ...
0
votes
1answer
48 views

How to create trueUSD token to my eth address [closed]

I am newbee about smart contract and eth tokens. I have created an eth account by: let account = web3Client.eth.accounts.create() I have my account details. I need to add some true usd token to eth ...
0
votes
2answers
33 views

Blochchain Smart Contract App

Actually Im working on a blockchain application based on smart contracts that allows to buy/sell properties and paying in cryptocurrency using Ethereum and Bitcoin. I wonder I develop smart contract ...
-2
votes
2answers
53 views

How to check ETH contract deposit? [closed]

I want to check ETH contract deposit. ETH contract deposit : (https://etherscan.io/tx/0xc4ae4e2444e91b02633cc771468585c954cc444e300ddceb659776287a4bdd39) { "blockHash": "...
0
votes
1answer
27 views

Is the following scenario doable by a smart contract?

I have 2 persons ( say A or B). They want to have the following agreement. Person ‘A’ specify a deposit (x coins ) for user ‘B’ under a certain condition with a future time lock ‘t’. If user ‘B’ ...
1
vote
1answer
22 views

How to use own custom token instead of gas price in ether? [duplicate]

I want to make my token and want that the token should be used as gas price. Is that possible,if yes please guide me for the same.
0
votes
0answers
35 views

Dose not sync Ethereum main net

I have wont start go-ethereum full node on my server. when i have start with ./geth --rinkeby --rpc --ws console started sync process Ok. But when i wont start with mannet ./geth --rpc --ws ...
0
votes
1answer
23 views

Can we pass some verification values from web to solidity contract?

Is there a way we can pass some value checks from web to solidity contract Just for example if we want to make sure, the person who is calling contract function is present on our website and not suing ...
0
votes
1answer
40 views

User ether.js mnemonic for bitcoin

I'm using Ether.js for my react native app to create mnemonic. i want use Wallet.fromMnemonic(code, path) to get key pairs but when i send bitcoin Derivation Path i get and ethereum private key which ...
0
votes
1answer
24 views

Store different numbers in Blockchain

pragma solidity ^0.4.24; contract Count { uint256 storeddata; function set(uint256 x) public { storeddata = x; } function get() public view returns(uint256) { return ...
1
vote
0answers
34 views

Ethereum Qr-code with amount?

How should a qr-code be formated with an amount in it? The npm package ethereum-qr-code uses the following format according to EIP-67: ethereum:0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8?gas=42000&...
1
vote
0answers
21 views

method personal_signTransaction not supported

Good Time I'm trying to test a smart contract in local ethereum wallet with connecting to the ganache-cli but when I try to create a wallet contract it gives me an error: method ...
0
votes
1answer
27 views

Minimum system requirements for mining ropsten ethers

I want to create my own faucet that will mine Ropsten ethers. What is the minimum system configuration which is required? Is it a good idea to use my own server such as AWS? What will be the ...
1
vote
2answers
25 views

How to use function arguments of payable function for require statement?

function createCampaign(uint deposit, address ll) public payable{ dpst = deposit; require(msg.value > (40*dpst)/100 wei); address newCampaign = address((new Campaign).value(msg.value)(...
2
votes
2answers
76 views

What is the unit used when using the SetBalance() function of the state package?

Maybe I missed it, but can't seem to find it anywhere. Is the unit used in Gwei or in Eth? For example when writing : stateDb, err := state.New(rootHash, db) if err!=nil{ return err } addressA :...
0
votes
1answer
21 views

creating instance of contract trough a factory contract! Problems with balance!

hopefully someone can help me with my question. I have a factory to create an instance of a dealContract. Everything works except one thing. I cant send wei to the created instance, so lets see the ...
1
vote
1answer
22 views

Saving ethers in local private testnet

I created a private ethereum tesnet using geth and it runs well on the system. However, I lose all the ethers in my account everytime I close the application. Is there a way to permanently save the ...
0
votes
1answer
26 views

Which smart contract should I use to wrap Eth [closed]

I need Weth for my dapp. So I looked at how AirSwap converts ETH to Weth. On the Rinkeby testnet, AirSwap calls this contract and uses the "deposit" function. I see from the code how this would work. ...
0
votes
1answer
17 views

Ethers in a light node

Since a light node makes transactions from a connected full node, does a light node need ethers to make transactions or it uses the ethers from the full node?
1
vote
1answer
116 views

Simple smart contracts to make a bet [closed]

I would like to create a simple smart contract between me and a couple of friends (basically, I'm putting money on the line and betting them that I will do something that they don't think I'll do.) ...
0
votes
1answer
125 views

Truffle will not compile contract written in VS code. Pragma error

I'm trying to run example from https://truffleframework.com/tutorials/pet-shop, but when I run truffle compile I get error saying Error parsing C:/WINDOWS/system32/TruffleTest/pet-shop-tutorial/...
0
votes
1answer
26 views

How to add actual Ether to custom token

I built a token by creating a smart contract for it, and have successfully connected to it, which is on a Ethereum test-net. Using web3.js I have been able to send token from one account to another ...
2
votes
3answers
82 views

accepting ether in a smart contract

I want to create a simple smart contract for registration of users to a competition where when users can pay to contract and 2 ethers will deduct from his account. But when I'm trying to do so on my ...
0
votes
0answers
23 views

Ethereum blockchain monitoring and contracts input data parsing

I am monitoring a particular addresses, that may be used as transactions' destination addresses in contracts' internal transactions. I should support monitoring of the sendMultiSig method (contract - ...
0
votes
0answers
30 views

Sending message on a transaction?

I want send a data on a transaction. _data is storing my message.. Here's my code: const Tx = require('ethereumjs-tx') const Web3 = require('web3') const web3 = new Web3('https://rinkeby.infura.io/v3/...
0
votes
0answers
31 views

Issue in understanding Crowsale in the ICO contract

I want to create a token and run an ICO but all this without the function of crowdsale and minting. It want it to be a token which has a strict initial suplly (exmpl 1M) and without the funtion of ...
1
vote
0answers
34 views

Ethereum transactions full history

How do I retrieve the transaction history of ethereum? I want to get all transactions that include this crypto currency for specific time periods. I looked at the ethereum API, but it needs some ...
0
votes
1answer
47 views

What does ERC20Interface do in smart contracts?

I found this fantastic code used to generate a smart contract which allows you to send your ERC20 tokens to another address. A simple overview / explanation of how that works is as following: We ...
0
votes
0answers
29 views

ERC721 Metadata Creation

I've recently deployed a smart-contract. It can be easily viewed here: https://rinkeby.etherscan.io/addres/0x768adab11d7accbbed0f6947ef7a677b4fea8392 Moreover, I do own a metadata in structured in ...