referrerpolicy=no-referrer-when-downgrade

Trait polkadot_service::runtime_traits::Extrinsic

source ยท
pub trait Extrinsic: Sized {
    type Call: TypeInfo;
    type SignaturePayload: SignaturePayload;

    // Provided methods
    fn is_signed(&self) -> Option<bool> { ... }
    fn is_bare(&self) -> bool { ... }
    fn new(
        _call: Self::Call,
        _signed_data: Option<Self::SignaturePayload>,
    ) -> Option<Self> { ... }
}
๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead
Expand description

Something that acts like an Extrinsic.

Required Associated Typesยง

source

type Call: TypeInfo

๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead

The function call.

source

type SignaturePayload: SignaturePayload

๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead

The payload we carry for signed extrinsics.

Usually it will contain a Signature and may include some additional data that are specific to signed extrinsics.

Provided Methodsยง

source

fn is_signed(&self) -> Option<bool>

๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead

Is this Extrinsic signed? If no information are available about signed/unsigned, None should be returned.

source

fn is_bare(&self) -> bool

๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead

Returns true if this Extrinsic is bare.

source

fn new( _call: Self::Call, _signed_data: Option<Self::SignaturePayload>, ) -> Option<Self>

๐Ÿ‘ŽDeprecated: Use ExtrinsicLike along with the CreateTransaction trait family instead

Create a new old-school extrinsic, either a bare extrinsic if _signed_data is None or a signed transaction is it is Some.

Object Safetyยง

This trait is not object safe.

Implementorsยง