Interacting with Gossamer with Polkadot.js api.
The polkadot.js api provides javascript access to the connected nodes runtime. It dynamically builds the functions based on the runtime. We use getMetadata function to determine what functions the api exposes.