Closed arjanz closed 2 years ago
To get more information how to construct the params needed in substrate.compose_call, the process is something like:
substrate.compose_call
call_function = substrate.get_metadata_call_function("XTokens", "transfer") for arg in call_function.args: print('name:', arg.name) param_type_obj = substrate.create_scale_object(arg.type) print('type info', param_type_obj.scale_info_type.retrieve_type_decomposition())
But should be more accessible like storage functions ScaleInfoStorageEntryMetadata.get_param_info()
ScaleInfoStorageEntryMetadata.get_param_info()
To get more information how to construct the params needed in
substrate.compose_call
, the process is something like:But should be more accessible like storage functions
ScaleInfoStorageEntryMetadata.get_param_info()