Versions in this module Expand all Collapse all v9 v9.0.3 Apr 15, 2024 v9.0.2 Apr 9, 2024 Changes in this version + const ErrGetBlockCall + type Block struct + Extrinsics []*Extrinsic[A, S, P] + Header types.Header + func (b *Block[A, S, P]) GetExtrinsics() []GenericExtrinsic[A, S, P] + func (b *Block[A, S, P]) GetHeader() types.Header + type Chain interface + GetBlock func(blockHash types.Hash) (B, error) + GetBlockLatest func() (B, error) + func NewChain[A, S, P any, B GenericSignedBlock[A, S, P]](client client.Client) Chain[A, S, P, B] + type ChainMock struct + func NewChainMock[A interface{}, S interface{}, P interface{}, B GenericSignedBlock[A, S, P]](t NewChainMockT) *ChainMock[A, S, P, B] + func (_m *ChainMock[A, S, P, B]) GetBlock(blockHash types.Hash) (B, error) + func (_m *ChainMock[A, S, P, B]) GetBlockLatest() (B, error) + type DefaultChain = ... + func NewDefaultChain(client client.Client) DefaultChain + type DefaultGenericSignedBlock = ... + type DefaultPaymentFields struct + Tip types.UCompact + type Extrinsic struct + Method types.Call + Signature *ExtrinsicSignature[A, S, P] + Version byte + func (e *Extrinsic[A, S, P]) Decode(decoder scale.Decoder) error + func (e *Extrinsic[A, S, P]) GetCall() types.Call + func (e *Extrinsic[A, S, P]) GetSignature() GenericExtrinsicSignature[A, S, P] + func (e *Extrinsic[A, S, P]) GetVersion() byte + func (e *Extrinsic[A, S, P]) IsSigned() bool + func (e *Extrinsic[A, S, P]) Type() uint8 + func (e *Extrinsic[A, S, P]) UnmarshalJSON(bz []byte) error + type ExtrinsicSignature struct + Era types.ExtrinsicEra + Nonce types.UCompact + PaymentFields P + Signature S + Signer A + func (e *ExtrinsicSignature[A, S, P]) GetEra() types.ExtrinsicEra + func (e *ExtrinsicSignature[A, S, P]) GetNonce() types.UCompact + func (e *ExtrinsicSignature[A, S, P]) GetPaymentFields() P + func (e *ExtrinsicSignature[A, S, P]) GetSignature() S + func (e *ExtrinsicSignature[A, S, P]) GetSigner() A + type GenericBlock interface + GetExtrinsics func() []GenericExtrinsic[A, S, P] + GetHeader func() types.Header + type GenericExtrinsic interface + GetCall func() types.Call + GetSignature func() GenericExtrinsicSignature[A, S, P] + GetVersion func() byte + type GenericExtrinsicSignature interface + GetEra func() types.ExtrinsicEra + GetNonce func() types.UCompact + GetPaymentFields func() P + GetSignature func() S + GetSigner func() A + type GenericSignedBlock interface + GetGenericBlock func() GenericBlock[A, S, P] + GetJustification func() []byte + type NewChainMockT interface + Cleanup func(func()) + type PaymentFieldsWithAssetID struct + AssetID types.Option[types.UCompact] + Tip types.UCompact + type SignedBlock struct + Block *Block[A, S, P] + Justification []byte + func (s *SignedBlock[A, S, P]) GetGenericBlock() GenericBlock[A, S, P] + func (s *SignedBlock[A, S, P]) GetJustification() []byte v9.0.1-rc1 Feb 28, 2024 Other modules containing this package github.com/Cerebellum-Network/go-substrate-rpc-client/v8