Combine Raw Transaction

combinerawtransaction ["hexstring",...]

Combine multiple partially signed raw transactions into one transaction. Here two raw transactions are combined:

combinerawtransaction "[\"02000000091<snip>000000\", \"0200000fffe<snip>000000\"]"

02000000091<snip>000000

createcontract "bytecode" (gaslimit gasprice "senderaddress" broadcast)

To deploy smart contract on the GLITCH blockchain, we required bytecode of the same. Exmaple command as below it will returns the transaction ID and the contract address hash.

createcontract 60505020<snip>49201d0039

{
"txid": "a1qw13cb5ce776200dcbe729d901d4e1d31ad5bb8d835db0f78163ac8e74d3",
"sender": "GfdR8awer9oMi2xxxSe8XBgv3mku27ukh",
"hash160": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"address": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
}

createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime ) ( replaceable )

This command used to create a hex-encoded raw transaction with sending some inputs to outputs. The transaction must then be signed and sent to the network, Returns a hex-encoded raw transaction.

createrawtransaction "[
{
\"txid\":\"fetb3f9ef53awef2e0368nnnnaw59bf12811bdfd42325bb1qqe4248e72deb7e2\",
\"vout\":0
}
]"
"{
\"Gd5eH323387mJCxSzAbe31w2vntTc7162\":1.0,
\"GdXtdq5ame2hdjf4mgD8eKKsepkh328f6\":0.99
}"


020000001d6331237cf207c6418fb6220cfcb2b141ba5d230f0ba0a43c68b358aff9a8a6000000000fffffff0509e5f5048000000
1983a9521346ffdc3cadd3dc7749a49bf053ed6defacd09ef6060000000187aa987kjhkbd4ae4167bebbf56bb7c51c5eabf35d50
a5c6e7f33ad0000000

decoderawtransaction "hexstring" ( iswitness )

Gives the decoded data from a raw hex-encoded transaction. Here we decode the results from createrawtransaction above.

decoderawtransaction 0200000<snip>f00ad0000000

{
"txid":"c93dace45dasdasdada9f5ac38c9d28ded224e47364abddi78akhamaadhasa2",
"hash":"c93dace45dasdasdada9f5ac38c9d28ded224e47364abddi78akhamaadhasa2",
"version": 1,
"size": 116,
"vsize": 116,
"locktime": 0,
"vin": [
{
"txid": "fetb3f9ef53awef2e0368nnnnaw59bf12811bdfd42325bb1qqe4248e72deb7e2",
"vout": 0,
"scriptSig":
{
"asm": "",
"hex": ""
},
"sequence": 4382362783
}
],
"vout": [
{
"value": 10.00000000,
<snip>
}
]
}