#bitcoind listtransactions
...
{
"account" : "",
"address" : "n2CoJejensyLj8ZpRULNfwqLJWSxeKQvNA",
"category" : "generate",
"amount" : 50.00000000,
"confirmations" : 203,
"generated" : true,
"blockhash" : "00000000499a0f0a08d1bcb70eb8725d106df90ff75aea1d2c67b0f947d29e12",
"blockindex" : 0,
"blocktime" : 1359766213,
"txid" : "0dd6c0e60a4c39e3e3371c4d83896f941a9979b5327aae2ae414165957b99428",
"time" : 1359766213,
"timereceived" : 1359766213
}
...
#bitcoind createrawtransaction '[{"txid":"0dd6c0e60a4c39e3e3371c4d83896f941a9979b5327aae2ae414165957b99428","vout":0}]' '{"miUL2hm9kV4jzSPFhS9rciafxtPiE7doqP":50}'
01000000012894b957591614e42aae7a32b579991a946f89834d1c37e3e3394c0ae6c0d60d0000000000ffffffff0100f2052a010000001976a914206945f138c53eef1f03013a3ffcfdfa1cc4498388ac00000000
#bitcoind decoderawtransaction 01000000012894b957591614e42aae7a32b579991a946f89834d1c37e3e3394c0ae6c0d60d0000000000ffffffff0100f2052a010000001976a914206945f138c53eef1f03013a3ffcfdfa1cc4498388ac00000000
{
"txid" : "44437ff64e7b6d190db5229e22cc3d36abbf91990b0c48fe28c74fd6c52b6ad2",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "0dd6c0e60a4c39e3e3371c4d83896f941a9979b5327aae2ae414165957b99428",
"vout" : 0,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 50.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 206945f138c53eef1f03013a3ffcfdfa1cc44983 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914206945f138c53eef1f03013a3ffcfdfa1cc4498388ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"miUL2hm9kV4jzSPFhS9rciafxtPiE7doqP"
]
}
}
]
}
#bitcoind signrawtransaction 01000000012894b957591614e42aae7a32b579991a946f89834d1c37e3e3394c0ae6c0d60d0000000000ffffffff0100f2052a010000001976a914206945f138c53eef1f03013a3ffcfdfa1cc4498388ac00000000 '[{"txid":"0dd6c0e60a4c39e3e3371c4d83896f941a9979b5327aae2ae414165957b99428","vout":0,"scriptPubKey":"76a914206945f138c53eef1f03013a3ffcfdfa1cc4498388ac"}]'
error: {"code":-22,"message":"Previous output scriptPubKey mismatch:\n03ef0841c439601e42b84989b0d2f2b4df15edbd5ebd05a51a25631c94019bf7b3 OP_CHECKSIG\nvs:\nOP_DUP OP_HASH160 206945f138c53eef1f03013a3ffcfdfa1cc44983 OP_EQUALVERIFY OP_CHECKSIG"