syscoinsetethheaders [blockhash, txroot, txreceiptroot] ...
Sets NEVM headers in Syscoin to validate transactions through the NEVM bridge. Only useful for testing in regtest mode.
Arguments:
1. headers (json array, required) An array of arrays (block hashes, tx root) from NEVM blockchain
[
[ (json array) An array of [block hashes, tx root]
"block_hash", (string) Hash of the block
"tx_root", (string) The NEVM TX root of the block height
"receipt_root", (string) The NEVM TX Receipt root of the block height
...
],
...
]
Result:
{ (json object)
"status" : "str" (string) Result
}
Examples:
> syscoin-cli syscoinsetethheaders "[[\"0xd8ac75c7b4084c85a89d6e28219ff162661efb8b794d4b66e6e9ea52b4139b10\",\"0xd8ac75c7b4084c85a89d6e28219ff162661efb8b794d4b66e6e9ea52b4139b10\"],...]"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "syscoinsetethheaders", "params": ["[[\"0xd8ac75c7b4084c85a89d6e28219ff162661efb8b794d4b66e6e9ea52b4139b10\",\"0xd8ac75c7b4084c85a89d6e28219ff162661efb8b794d4b66e6e9ea52b4139b10\"],...]"]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/