Default Polkadot compatible extrinsic type.
Moduleweb3-polkadot-1.1.0.1Haskell2010
Network.Polkadot.Extrinsic
Extrinsic is a piece of data from external world.
- 2 types
- 4 values
- Packageweb3-polkadot-1.1.0.1
- Exports6
- LanguageHaskell2010
- LicenceApache-2.0
- SourceExtrinsic.hs
type
type SignedExtra = (CheckSpecVersion, CheckTxVersion, CheckGenesis, CheckEra, CheckNonce, CheckWeight, ChargeTransactionPayment)Default Polkadot signed extra.
value
sign_and_send :: (MultiPair pair, IdentifyAccount (MultiSigner pair), Ss58Codec (AccountId (MultiSigner pair)), Encode (MultiAddress pair), Encode (MultiSignature pair), Encode call, JsonRpc m)=> pairSender account pair.
-> callRuntime function to call.
-> BalanceTips for speedup transaction (set zero for no boost).
-> m HexStringTransaction hash.
Sign extrinsic and send it using node RPC call.
Create a mortal Era with biggest lifetime period.
Note: The assumption is runtime has BlockHashCount = 2400. This is common
for Polkadot runtimes.
value
new_extra' :: EraTransaction mortality.
-> IndexTransaction nonce value.
-> BalanceTransaction tips, or set zero for no tips.
-> SignedExtraReturns Polkadot transaction extra.
Create signed extra from general data.