The `Api` constructor allows passing `types` needed to connect to a custom chain.
The
Apiconstructor allows passingtypesneeded to connect to a custom chain.