pub fn create_extrinsic(
    client: &FullClient,
    sender: Pair,
    function: impl Into<RuntimeCall>,
    nonce: Option<u32>
) -> UncheckedExtrinsic
Expand description

Create a transaction using the given call.

The transaction will be signed by sender. If nonce is None it will be fetched from the state of the best block.

Note: Should only be used for tests.