Documentation ¶
Index ¶
- type Address
- type Args
- type Block
- type CallArgs
- type CheckMetadataHash
- type CheckMortality
- type Client
- func (client *Client) Get(ctx context.Context, url string, outputData any) error
- func (client *Client) GetBlock(ctx context.Context, height int64) (*Block, error)
- func (client *Client) GetEvents(ctx context.Context, ext *Extrinsic) ([]*Event, error)
- func (client *Client) GetTransaction(ctx context.Context, txHash string) (*Extrinsic, error)
- type ClientArgs
- type DispatchClass
- type DispatchInfo
- type Error
- type Event
- type Extrinsic
- type GetBlocksResponse
- type GetEventsResponse
- type GetExtrinicResponse
- type InnerSignature
- type MetadataMode
- type Pagination
- type PaysFee
- type Signature
- type SignedExtensions
- type Weight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { DispatchInfo *DispatchInfo `json:"dispatchInfo,omitempty"` ActualFee *string `json:"actualFee,omitempty"` Tip *string `json:"tip,omitempty"` Who *string `json:"who,omitempty"` Amount *string `json:"amount,omitempty"` From *string `json:"from,omitempty"` To *string `json:"to,omitempty"` }
type Block ¶
type Block struct { BlockNumber int `json:"block_number"` Hash string `json:"hash"` ParentHash string `json:"parent_hash"` StateRoot string `json:"state_root"` ExtrinsicsRoot string `json:"extrinsics_root"` SpecName string `json:"spec_name"` SpecVersion int `json:"spec_version"` ImplName string `json:"impl_name"` ImplVersion int `json:"impl_version"` Timestamp time.Time `json:"timestamp"` Validator *string `json:"validator"` EventsCount int `json:"events_count"` ExtrinsicsCount int `json:"extrinsics_count"` CallsCount int `json:"calls_count"` }
type CheckMetadataHash ¶
type CheckMetadataHash struct {
Mode MetadataMode `json:"mode"`
}
type CheckMortality ¶
type CheckMortality struct {
Kind string `json:"__kind"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientArgs ¶
type ClientArgs struct {
ApiKey string
}
type DispatchClass ¶
type DispatchClass struct {
Kind string `json:"__kind"`
}
type DispatchInfo ¶
type DispatchInfo struct { Class DispatchClass `json:"class"` PaysFee PaysFee `json:"paysFee"` Weight Weight `json:"weight"` }
type Event ¶
type Event struct { ID string `json:"id"` ExtrinsicIndex int `json:"extrinsic_index"` Index int `json:"index"` Phase string `json:"phase"` Pallet string `json:"pallet"` Name string `json:"name"` FullName string `json:"full_name"` Args map[string]interface{} `json:"args"` BlockNumber int `json:"block_number"` ExtrinsicID string `json:"extrinsic_id"` CallID *string `json:"call_id"` Timestamp time.Time `json:"timestamp"` }
type Extrinsic ¶
type Extrinsic struct { Timestamp time.Time `json:"timestamp"` BlockNumber int64 `json:"block_number"` Hash string `json:"hash"` ID string `json:"id"` Index int `json:"index"` Version int `json:"version"` Signature Signature `json:"signature"` SignerAddress string `json:"signer_address"` Tip string `json:"tip"` Fee string `json:"fee"` Success bool `json:"success"` Error *string `json:"error"` CallID string `json:"call_id"` FullName string `json:"full_name"` CallArgs CallArgs `json:"call_args"` }
type GetBlocksResponse ¶
type GetBlocksResponse struct { Pagination Pagination `json:"pagination"` Data []Block `json:"data"` }
type GetEventsResponse ¶
type GetEventsResponse struct { Pagination Pagination `json:"pagination"` Data []*Event `json:"data"` }
type GetExtrinicResponse ¶
type GetExtrinicResponse struct { Pagination Pagination `json:"pagination"` Data []Extrinsic `json:"data"` }
type InnerSignature ¶
type MetadataMode ¶
type MetadataMode struct {
Kind string `json:"__kind"`
}
type Pagination ¶
type Signature ¶
type Signature struct { Address Address `json:"address"` Signature InnerSignature `json:"signature"` SignedExtensions SignedExtensions `json:"signedExtensions"` }
type SignedExtensions ¶
type SignedExtensions struct { ChargeTransactionPayment string `json:"chargeTransactionPayment"` CheckMetadataHash CheckMetadataHash `json:"checkMetadataHash"` CheckMortality CheckMortality `json:"checkMortality"` CheckNonce int `json:"checkNonce"` }
Click to show internal directories.
Click to hide internal directories.