I've successfully submitted the extrinsic RPC call and got a JSON response
{
"jsonrpc": "2.0",
"result": "0x715b0b0d105920a928ad005bd525a68d6b8b60e73afa043174fe0db2f7133db8",
"id": 1
}
Knowing the transaction hash, how can I know whether the extrinsic got accepted or rejected by the network. Is there a way to see the error code in case of rejection? Thanks
Update
I'm calling a method in a custom pallet. The runtime logic returns a System.ExtrinsicFailed
exception with a specific error.
But the submitted extrinsic is still included to the block.
{
"jsonrpc": "2.0",
"result": {
"block": {
"extrinsics": [
"0x280402000b74c3add97f01",
"0xe9018400d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d010a53e10e6c6b4e3f0ec5faf3e4db39e1b70766873ae3462e53c90b1316565e408c7c74dc6bdf4d4274871d44ec27956fd6547b733e6cfacf9b34526251c1ad84006400080040e00b2d48eee975515138552126e2bf8600"
],
"header": {
"digest": {
"logs": [
"0x06617572612041ab601000000000",
"0x0561757261010126d20fb044834f6f1a9d036403af6ad87bfec598889ddcc174fbaf190c75ce77120ae859cc739b1089850346409868ef229989a91ee08b5d860ed838bc79d68f"
]
},
"extrinsicsRoot": "0x35f1510c6c4704691c742a107d2a53e722b65e08d268a369052f728d35b981a1",
"number": "0x19b4",
"parentHash": "0x6f589b4e8d8885f59b726689d702e86f55af07af281e4c9377987841c31e7dd4",
"stateRoot": "0xa9e3f1fc62e82c501289266655eabeb04c3488d67184d683ed27bd4a3e336350"
}
},
"justifications": null
},
"id": 1
}
What are logs? Do I understand correctly, that they also can be deserialised? Do they correspond to extrinsic with the same index? Thanks