Documentation
¶
Index ¶
- func GetParam[T any](ev *Event, name string) (T, error)
- func GetParamAccountId(ev *Event, name string) ([]byte, error)
- func GetParamInt(ev *Event, name string) (xc.AmountBlockchain, error)
- func Post(ctx context.Context, url string, inputJson []byte, outputData any, ...) error
- type AccountDisplay
- type ClientArgs
- type Error
- type Event
- type Param
- type SubscanExtrinsicData
- type SubscanExtrinsicResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamInt ¶
func GetParamInt(ev *Event, name string) (xc.AmountBlockchain, error)
Types ¶
type AccountDisplay ¶
type AccountDisplay struct {
Address string `json:"address"`
}
type ClientArgs ¶
type Event ¶
type Event struct { EventIndex string `json:"event_index"` BlockNum int64 `json:"block_num"` ExtrinsicIdx int `json:"extrinsic_idx"` ModuleID string `json:"module_id"` EventID string `json:"event_id"` Params string `json:"params"` Phase int `json:"phase"` EventIdx int `json:"event_idx"` ExtrinsicHash string `json:"extrinsic_hash"` Finalized bool `json:"finalized"` BlockTimestamp int64 `json:"block_timestamp"` // contains filtered or unexported fields }
func (*Event) ParseParams ¶
type SubscanExtrinsicData ¶
type SubscanExtrinsicData struct { BlockTimestamp int64 `json:"block_timestamp"` BlockNum int64 `json:"block_num"` ExtrinsicIndex string `json:"extrinsic_index"` CallModuleFunction string `json:"call_module_function"` CallModule string `json:"call_module"` AccountID string `json:"account_id"` Signature string `json:"signature"` Nonce int `json:"nonce"` ExtrinsicHash string `json:"extrinsic_hash"` Success bool `json:"success"` Params []Param `json:"params"` Transfer interface{} `json:"transfer"` // Assuming it can be null Event []*Event `json:"event"` EventCount int `json:"event_count"` Fee string `json:"fee"` FeeUsed string `json:"fee_used"` Error interface{} `json:"error"` // Assuming it can be null Finalized bool `json:"finalized"` Lifetime interface{} `json:"lifetime"` // Assuming it can be null Tip string `json:"tip"` AccountDisplay AccountDisplay `json:"account_display"` BlockHash string `json:"block_hash"` Pending bool `json:"pending"` SubCalls interface{} `json:"sub_calls"` // Assuming it can be null }
type SubscanExtrinsicResponse ¶
type SubscanExtrinsicResponse struct { Code int `json:"code"` Message string `json:"message"` GeneratedAt int64 `json:"generated_at"` Data SubscanExtrinsicData `json:"data"` }
Click to show internal directories.
Click to hide internal directories.