Post
Topic
Board Altcoin Discussion
Re: ppcoind: get non wallet transaction
by
crazydownloaded
on 02/06/2014, 15:11:19 UTC
Oh this will be great!
I tried this on the latest master, I thought it could work:

./ppcoind getblock d82e9cfea1e6f76d9f314dd2196d9d9dcc8c78663e43865cf48db2e8ad73d8ea
{
    "hash" : "d82e9cfea1e6f76d9f314dd2196d9d9dcc8c78663e43865cf48db2e8ad73d8ea",
    "size" : 1401,
    "height" : 103293,
    "version" : 1,
    "merkleroot" : "2f80469e3d719f06d887ad2727b526287fd9212c93fb643aff76df57065bd0b6",
    "time" : "2014-03-25 16:59:50 UTC",
    "nonce" : 0,
    "bits" : "1c17ac9d",
    "difficulty" : 10.81326212,
    "mint" : 0.42000000,
    "previousblockhash" : "3560e432e99889a8074be488e0b2a74718ffd4afd2d429180689f560cb52971f",
    "nextblockhash" : "71c1c4fc50177516b7232ebb189affd3c5150fce125cdec93d9d8de70cb6d8b3",
    "flags" : "proof-of-stake",
    "proofhash" : "0000021b5d4edb39c69fa00be63b58015d9e37d6c37bb90e3c1ae04ab531c2b5",
    "entropybit" : 0,
    "modifier" : "1169f09dbc6235c6",
    "modifierchecksum" : "228e886b",
    "tx" : [
        "254151c6b0def14948e6c68a0f7f8c461a8cd4fba60e47d84d1d497d7161cd15",
        "d08c7222de6d63bd10409df8cf20b85776eca6c47fdba615541308e2e9edf753",
        "c30ac1d94d0101d97ca0f5d4df8fa8343ff512f2c03bdb91ff98f32fc65ddeca",
        "358821fdfc2a3b7084f2a9993744ae43240465eaaed953b545a5494023b5d63c",
        "affe4571a64b852b97bd1839c95c89bcf36c923010ca626fe41f1c85c9f60079"
    ]
}


./ppcoind gettransaction 358821fdfc2a3b7084f2a9993744ae43240465eaaed953b545a5494023b5d63c
error: {"code":-5,"message":"Invalid or non-wallet transaction id"}


(the daemon is started with -txindex=1 -daemon -server)

Let's wait for the next update, but this is a good move Smiley