web3-polkadot-1.0.1.0: Polkadot support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2024
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Polkadot.Extrinsic.Unchecked

Description

Extrinsic is a piece of data from external world.

Synopsis

Documentation

data UncheckedExtrinsic c a s e Source #

A extrinsic right from the external world. This is unchecked and so can contain a signature.

Constructors

UncheckedExtrinsic 

Fields

  • extrinsicSignature :: !(Maybe (a, s, e))

    The signature, address, number of extrinsics have come before from the same signer and an era describing the longevity of this transaction, if this is a signed extrinsic.

  • extrinsicFunction :: !c

    The function that should be called.

Instances

Instances details
Encode c => Show (UncheckedExtrinsic c a b c) Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Unchecked

(Decode c, Decode a, Decode s, Decode e) => Decode (UncheckedExtrinsic c a s e) Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Unchecked

Methods

get :: Get (UncheckedExtrinsic c a s e) #

(Encode c, Encode a, Encode s, Encode e) => Encode (UncheckedExtrinsic c a s e) Source # 
Instance details

Defined in Network.Polkadot.Extrinsic.Unchecked

Methods

put :: Putter (UncheckedExtrinsic c a s e) #

new_unsigned :: f -> UncheckedExtrinsic f a b c Source #

New instance of an unsigned extrinsic aka "inherent".

new_signed :: c -> a -> s -> e -> UncheckedExtrinsic c a s e Source #

New instance of a signed extrinsic aka "transaction".

sign_extrinsic Source #

Arguments

:: (MultiPair a, Encode c, SignedExtension e, JsonRpc m) 
=> a

Account to sign extrinsic.

-> c

Function to call on runtime.

-> e

Additional data to sign like nonce, blockhash, etc.

-> m (UncheckedExtrinsic c (MultiAddress a) (MultiSignature a) e) 

Create and sign extrinsic by account.