Dispatch Calls from any Origin

As highlighted during the simnode configuration, simnode provides an RPC api that allows you construct extrinsics that look like they came from any account.
bash
curl http://127.0.0.1:9933 -d '{"id":29,"jsonrpc":"2.0","method":"simnode_authorExtrinsic","params":["hex-encoded-call", "ss58 encoded account"]}' -H "Content-Type: application/json"
This rpc method returns the hex-encoded extrinsic that can be submitted with author_submitExtrinsic.
For example:
bash
āžœ curl http://127.0.0.1:9933 -d '{"id":29,"jsonrpc":"2.0","method":"simnode_authorExtrinsic","params":["0x0400008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48130000000000000008", "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"]}' -H "Content-Type: application/json" {"jsonrpc":"2.0","result":"0x49028400d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000400008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48130000000000000008","id":29} āžœ curl http://127.0.0.1:9933 -d '{"id":29,"jsonrpc":"2.0","method":"author_submitExtrinsic","params":["0x49028400d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000400008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48130000000000000008"]}' -H "Content-Type: application/json" {"jsonrpc":"2.0","result":"0x44474edbbbd8610ca625ece8d71cf8b948027208b4b4f68cc2251822cf162c9a","id":29}
Share