0
votes
0answers
4 views

jquery.min.js:4 GET http://127.0.0.1:8000/RiskxTokenSale.json 404 (Not Found)

I've got the following code for my app.js: App = { web3Provider: null, contracts: {}, init: function() { console.log("App initialized...") return App.initWeb3(); }, initWeb3: ...
0
votes
1answer
6 views

discover if a binary data contains Ethereum address in it?

Is there a way to guess, with some level of probability , that a 20 byte array is an Ethereum address, besides doing a query against the current StateDB and its history ? I want to discover hidden ...
0
votes
1answer
9 views

Pass parameters into Solidity Constructor from Truffle CONSOLE

How do we pass in constructor parameters to a contract that we want to test? I understand that the initial contract deployment occurs in the migrations file, but if, for testing/debugging purposes, we ...
0
votes
1answer
6 views

Store ABI Value in var

I've finally managed to get my web3.js to work.. I did this only for the purpose to display one specific value on my website.. I'm not so good with jquery and hope you guys can help me out. This is ...
0
votes
0answers
4 views

Launch more than one node connected to Rinkeby from the same machine (change the port doesnt work)

I would like to know if it is possible to launch more than one node connected to Rinkeby from the same machine through Geth and Mist. In a local testnet, it is possible to do it changing the --port ...
0
votes
0answers
9 views

How Do Accounts Generate Ether After Genesis Creation?

How is new ether created in a private proof-of-authority network? I understand when creating a genesis file you can specifically allocate funds to an account, but what about after the network has been ...
0
votes
1answer
16 views

Whitelist.sol - Getting the array of whitelisted addresses

I am writing a token that inherits from Whitelist.sol. I would like to write a function that returns an array of addresses that are whitelisted. It must be something along the lines of function ...
1
vote
1answer
15 views

Can I use variables declared in modifiers in my function?

Given the below code, can I use a variable defined in a modifier (ie _organization), in my function? It's not compiling now but wondering if there is any way to do this? modifier onlyCEOOrCOO { ...
1
vote
3answers
18 views

Retrieve stuck ether on smart contract

Is there any way to recover ether that is stuck in a smart contract? refundMoney() method was supposed to call only after everything is finalized but because someone has transferred some ether amount ...
0
votes
0answers
21 views

onlyOwner and testing question

I'm struggling with this modifier as well as one i'd like to use for some other contracts. I figure if i understand why this is a problem i can probably get the rest right. testing screenshots I ...
-3
votes
0answers
9 views

How can I airdrop (multisend) already existing tokens?

Im noob in solidity, i want to send tokens to hundreds of addresses. I have this code: contract ERC20 { function transfer(address _recipient, uint256 _value) public returns (bool success); } ...
0
votes
0answers
11 views

How are arithmetic operations performed on strings within EVM bytecode?

for eample, I have this following bytecode: 60A060020a which translate into: PUSH1 0xA0 PUSH1 0x2 EXP How would an exponentiation operation be performed on the 2 items pushed into the stack, when ...
0
votes
1answer
14 views

Edit mapping from other contract

I have two contracts. One to manage quests and one to manage units. These units have an uint exp and are mapped to an id by mapping(uint256 => Unit) public tokenToUnit;. Now I want to use the Quest ...
0
votes
2answers
20 views

Can i close ethereum smart contract?

If i create a smart contract and coin, can for exampel some day close the contract and these coins are useless or can not be used for example? possible or not?
0
votes
1answer
25 views

Delegated Proof of Stake (DPOS) vs. Proo of Stake?

What is the main difference between Delegated Proof of Stake (DPOS) vs. Proof of Stake? Is there any significant advantage for security? (since PoS in general suffers security problems.) And which ...
0
votes
1answer
9 views

Is there a way to get enode:// addresses of etherscan and infura nodes?

How can I get enode:// addresses of Infura and Etherscan nodes? Both mainnet and ropsten ones preferably. I would like to add them to my nodes peers list to be able to sync better. Thanks!
0
votes
1answer
16 views

Getting compilation error when trying to use openzeppelin for erc20 token

I installed Openzeppelin framework and created a simple token sol file. pragma solidity ^0.4.24; import "node_modules/openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; contract SToken ...
0
votes
0answers
27 views

Trying to send money to account from contract -> transaction reverts

I am trying to execute a contract which after storing a certain amount on the contract sends 20 Wei to an account. So far I can add the money to the contract but trying to transfer money to an account ...
0
votes
1answer
17 views

contract address returning as null value

I am trying to create a factory contract and storing the smart contract address in an array but when I trying to retrieve the value, it always gives null value. Please find the contracts that I have ...
-2
votes
0answers
22 views

eth_estimateGas out of gas exception when setting a variable to 0 in a contract NOTE: using web3 provider as environment on remix ID [on hold]

pragma solidity ^0.4.19; contract test { uint128 public aPos=0; function updateQuota( uint128[] _Quota) { aPos = _Quota[0]; } }
0
votes
0answers
18 views

Invalid type for argument in function call (usage of “this” argument returns error)

The new compiler version of Remix-solidity does not accept "this" type of argument in function call. What else can be used to indicate contract address???? pragma solidity ^0.4.16; contract owned { ...
0
votes
0answers
11 views

This contract does not implement all functions and thus cannot be created In PosToekns

I have try to run the run PoSToken in remix compiler, So I am getting the the following error, Please help me to solve my problem. "This contract does not implement all functions and thus cannot be ...
0
votes
1answer
16 views

Connecting to remote node

I have created a node in my laptop. Now I want my friend (from his home) to connect to the node I created. We are part of two different networks. How can these two nodes be connected in ethereum. What ...
0
votes
1answer
19 views

why out of gas when gasLimit is not reached

https://etherscan.io/tx/0x43f39829b3a48c4146808b12489e01bdb5dfa32d5b49514298339a719e538c09 this tx failed, and the msg shows the cause is: out of gas, but Gas Limit is 520000, while only 86056 Gas ...
-1
votes
0answers
16 views

Serialize transaction [on hold]

I have signed transaction successfully. Now I want to serialize the transaction using Geth.aar Please help me with this.
0
votes
2answers
19 views

Does it make a difference to index an event with one parameter?

Is there any difference between the two? event NewEvent(address addr) event NewEvent(address indexed addr)
0
votes
0answers
19 views

TypeError: “this is undefined” in truffle while invoking a contract

ProofOfOwnership.sol contract ProofOfOwnership { address public owner; mapping( string => Document) documents; struct Document { string docHash; string docTimestamp; ...
0
votes
1answer
13 views

How to see Smart contract address and it’s transactions, and have multiple addresses in a smart contract

How can I see a smart contract address & know which addresses sent ether to my smart contract? And Can a smart contract have multiple receiving addresses.... like for example if I am selling e-...
0
votes
1answer
9 views

How to keep a geth node synchronised on a ubuntu machine?

The requirement is keep a geth node synchronised almost always for a DAPP . The geth node is running on a ubuntu machine. The command being used to expose the geth rpc server is geth --testnet --...
0
votes
2answers
32 views

Ethereum without Gas Fees for Transactions

We have been working on Launching One of the most stable coin on Ethereum Network. And as part of strategy we want to get rid of Transaction fees for every coin transfer between wallets. With Ethereum ...
0
votes
3answers
24 views

How I add Security to the smart contract?

I deployed this contract and also interacted with it using ganache. pragma solidity ^0.4.0; contract Counter { int private count = 0; function incrementCounter() public { ...
0
votes
2answers
26 views

Can code send ETH to user accounts?

I was watching a talk by Vitalik in DEVCON1 in which he says code can do three things one of them being code can send ETH to other contracts. But can it send ETH to users account as well? Attached is ...
0
votes
0answers
15 views

Is there any way to simulate the Ethereum mainnet gas price for a Dapp? [duplicate]

I'm currently developing a Dapp, and I've tested it on the Rinkeby testnet. Is there any way for me to figure out the ideal gas price on the mainnet for my Dapp transactions to run within, say, 20-30 ...
0
votes
0answers
5 views

Quorum and Trusted Execution Environment (TEE)

For private ethereum and quourm, the use of trusted execution environment (TEE) might improve scalability and speed. Are there any projects that one could join for the use of TEEs with private ...
0
votes
1answer
10 views

What does it mean that if particular wallet has more of particular erc20 token than ever recieving it via transactions? How dit it get there?

I know this is basic question, but would like to know answer anyway :-) Example is here: https://etherscan.io/token/0x4dc3643dbc642b72c158e7f3d2ff232df61cb6ce?a=...
0
votes
1answer
18 views

Wrapping ETH calling the WETH contract

I am trying to automatically wrap ETH when a user deposit ETH on my dapp. Therefore I am trying to call the WETH contract (on the Kovan Testnet for now). I wrote this code : WETH9_ WETH = WETH9_(...
1
vote
0answers
10 views

What is fat db in parity

What does fat_db option in parity do? I don't understand its description from docs: Build appropriate information to allow enumeration of all accounts and storage keys. Doubles the size of the state ...
0
votes
0answers
13 views

Is there an API for localethereum like the one for localbitcoins? [on hold]

Is there an API for localethereum like this one: https://localbitcoins.com/api-docs/ It has a Python Library https://github.com/LocalBitcoins/lbcapi a language that I'm comfortable with. Thanks for ...
0
votes
0answers
11 views

What is the purpose of non-mining sealer nodes in clique POA private ethereum network with respect to the clique consensus

I did setup a private POA ethereum network with 4 nodes with 3 of them mining . I went on to try a lot of combinations with some miners and sealers and reached to a conclusion that every miner hash to ...
0
votes
0answers
18 views

Solidity - Have a max cap per year [on hold]

In Solidity, what would a be a good way to have a cap to do a certain action per year and, obviously, reset it each year or once a year has passed? Example: I want to post or do something but I'm ...
0
votes
1answer
19 views

Is it possible to calculate gas needed for a transaction to run within a certain amount of time?

I'm trying to find out how much gas is required for a transaction to complete in about 5-10 seconds. Is there any way to do that, or is my understanding of this wrong? Thanks in advance!
0
votes
1answer
20 views

How secure is using port 8545 from the internet (aka via JSON), can someone steal my ether?

Just noticed I can access 8545 from localhost but fortunately not from the web/internet. Do I need this at all? e.q. I read about someone who had lost $20 million due to someone else sending a call ...
0
votes
1answer
13 views

This code is only displaying 0 output on the input of either 15 or any number why is that so? Is there something wrong with the code?

pragma solidity ^0.4.24; contract sec { uint age= 15; uint agePer; modifier onlyPer (){ if(age==agePer) { _; } } function getage(uint agep) ...
1
vote
1answer
21 views

question about gas limit when using oraclize

I'm using oraclize to fetch some data from the outside world. Oraclize calls the __callback method of my smart contract. For this call oraclize have to pay gas and there is a function to set the gas ...
0
votes
1answer
19 views

What does “_” mean before a variable name?

I'm a beginner, just recently started reading the docs for Solidity. I can't seem to find this anywhere on google. What does the underscore mean when placed with the indexed keyword? Examples: _from ...
0
votes
1answer
17 views

How to sign the transaction using Geth in android

I'm using Geth.aar library for handling ethereum. I generated the address, gas price, gas estimation, and transaction count. now I want to sign the transaction. Please help who knows the answer.
-1
votes
0answers
8 views

Upcoming airdrops and forks [on hold]

I was wondering if anyone knew of any upcoming airdrops for ETH holders or forks of the protocol that are airdropping their tokens to ETH holders. I've been looking on all the public channels but I ...
0
votes
0answers
16 views

Web3JS Batch transactions

So I have a script that distributes erc20 to multiple wallet addresses, but it creates a individual transaction for each address. Is it possible to group this transactions and save on gas cost? I ...
0
votes
2answers
29 views

How do I test this code in Solidity in Remix?

Originally was trying to use Mist but have syncing issues to doing everything through Remix. Solidity skills are very poor so any help and how to test these functions would be most appreciated. ...
0
votes
1answer
11 views

Transfer function not working in basic deposit and withdraw contract

I have this simple contract used with remix. pragma solidity^0.4.24; contract test{ mapping (address => uint) balances; function Deposit() public payable{ balances[msg.sender] += msg....

15 30 50 per page