I have a code in which a function name is specified, it is referenced twice later on. This function is placed right below the macros declaration:
#[subxt::subxt(runtime_metadata_path = "polkadot_metadata.scale")]
pub mod polkadot {}
This looks to me like a procedural macro, as it takes some code(referenced via word: 'polkadot') and emits the code:
let api = ClientBuilder::new()
.set_client(client)
.build()
.await?
.to_runtime_api::<polkadot::RuntimeApi<polkadot::DefaultConfig>>();
I want to understand why the line pub mod polkadot {}
was placed and how can I explore what API calls are provided in polkadot
?