During building the block from extrinsics in block-builder I need to access individual extrinsic data, namely signer's AccointId and a nonce. I assume these data a part of SignaturePayload
of the Extrinsic
trait but can not find a way to get these.
pub fn build(mut self) -> Result<BuiltBlock<Block, backend::StateBackendFor<B, Block>>, Error> {
let extrinsics = self.extrinsics.clone();
extrinsics.into_iter().for_each(|xt| {
// Here I'm trying to get the data from the extrinsic, something like:
// let nonce = xt.nonce;
// let account_id = xt.account_id;
}
// The rest of the build function logic
}
How can I get signer's AccountId and nonce here?