No no no.
The accepted answer above is incorrect, and the fact that you've accepted it means that not many users will even read your question (let alone try to answer it).
The integer value of 1000000000000000000 is indeed larger than Number.MAX_SAFE_INTEGER, and you should therefore use "1000000000000000000" or "1e18". But that's not what the error ...
There are lots of different ways you could manage writing this data to ethereum. Depending on how big your JSON files are / how many json files you'll need to publish, this is a potential solution.
Deploy the contract below and transact with the writeJsonFile to emit JSONFileEvents from this smart contract, these events will be stored in the blockchain and ...
After testing in Remix everything works just fine. I deployed the code, I called depo with value and tested all the functions. Because I'm not sure if you can see contract's balance in some way directly in Remix I added an extra function to return the current contract balance and called that function after every withdraw function call to verify the results.
Token transfers are not actually transfers of value at all. Only Ether transfers explicitly transfer (and contain) value. So a transaction transfers Ether if and only if its value field is non-zero.
Detecting a token transfer is much more tricky. A token transfer is simply calling a function in a token contract. So first you need to know whether the ...
Receipts are basically for proving logs and events, rather than details of a transaction.
Vitalik Buterin gave an example of using receipts, as well as other examples that can be answered with Merkle proofs:
Has this transaction been included in a particular block?
Tell me all instances of an ...
Before line require(bid2 > highestBid2); you have an extra }. Just remove that and it at least compiles.
If you had correct indentation you'd notice this problem immediately. I suggest you use some editor which fixes indentation for you.
No your account is safe or, better, if you still have the private key of the account you are interested in, your money and your account are safe. You are definitively able to recover them using some other wallet. I use CIPHER on iOS and it is ok. On the other side, simply add a new account in metamask giving the private key when asked for it. Nothing more.
You can get your accounts back by clicking "Create Account" (once per each account).
The accounts are there, however they are not shown until you add them.
If the accounts that show up do not match what you are expecting, then you are using an incorrect seed.