Documentation
¶
Index ¶
Constants ¶
const (
ApiModuleName = "TransactionPaymentApi"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the TransactionPaymentApi Runtime API definition.
For more information about API definition, see: https://spec.polkadot.network/chap-runtime-api#sect-runtime-transactionpaymentapi-module
func New ¶
func New(decoder types.RuntimeDecoder, txPayments transaction_payment.Module, logger log.RuntimeLogger) Module
func (Module) Item ¶
func (m Module) Item() primitives.ApiItem
Item returns the first 8 bytes of the Blake2b hash of the name and version of the api module.
func (Module) Metadata ¶
func (m Module) Metadata() primitives.RuntimeApiMetadata
Metadata returns the runtime api metadata of the module.
func (Module) QueryFeeDetails ¶
QueryFeeDetails queries the detailed fee of an extrinsic. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded extrinsic and its length. Returns a pointer-size of the SCALE-encoded detailed fee.
For more information about function definition, see: https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentapi-query-fee-details
func (Module) QueryInfo ¶
QueryInfo queries the data of an extrinsic. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded extrinsic and its length. Returns a pointer-size of the SCALE-encoded weight, dispatch class and partial fee.
For more information about function definition, see: https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentapi-query-info