How can I copy and paste blockchain data from the AlethZero client?

I'm trying to copy some of the values from the Blockchain section of the AlethZero client in order to make a script work.

But nothing I try to copy from there works Ctrl + C, Ctrl + Shift + C, Ctrl + Insert. None of them.

I've tried copying some of the values by hand, but apparently, I keep making typos because my scripts always fail.

Answers

  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    You can double click certain values to copy them - in particular your account addresses.
  • JikmoJikmo Member Posts: 6
    This doesn't work for the values in the Block Chain section.
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    That is correct, to copy your contract address from the GUI you're better off being offline, submit the contract-creating trx as pending, then CTRL+C within the pending panel. I'll try to find an easier way and update the tutorial.
  • tglaunertglauner New YorkMember Posts: 4
    Is there an update on this? I know that there are many pressing development areas but a copy/paste function on the GUI might be important for the acceptance by users.
  • chevdorchevdor Member Posts: 6
    Hi Jikmo,

    I agree this is annoying :smile:
    There is an easy option to overcome that with AlethZero.
    First you need to notice the number of the block you are interested in.

    Then either you use the clunky javascript console of AZ or
    you right click the web page area and open the inspector.
    In the console, you can then type the following command:

    web3.eth.block()

    For instance: web3.eth.block(0)

    You will get something similar to the following and there you can copy/paste as much as you want.

    Object {difficulty: "0x020000", extraData: "0x0000000000000000000000000000000000000000000000000000000000000000", gasLimit: 1000000, hash: "32d9162f861a01bc8274e70b3cdb9d688fd7d8566f2f8c25cf1a882f244081c4", miner: "0x0000000000000000000000000000000000000000"…}
    difficulty: "0x020000"
    extraData: "0x0000000000000000000000000000000000000000000000000000000000000000"
    gasLimit: 1000000
    hash: "32d9162f861a01bc8274e70b3cdb9d688fd7d8566f2f8c25cf1a882f244081c4"
    miner: "0x0000000000000000000000000000000000000000"
    nonce: "0x04994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829"
    number: 0
    parentHash: "0x0000000000000000000000000000000000000000000000000000000000000000"
    sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
    stateRoot: "0x7e204dc9cfb7acdf062ff0b8052f7fcb0b7e6593754773967932ce458d134af3"
    timestamp: 0
    transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
    ....

    I hope this helps.
    -chevdor
Sign In or Register to comment.