Optional
cacheOptional
cacheOptional
hasherOptional
metadataMetadata is usually downloaded from chain via RPC upon API initialization, We can supply the metadata directly via this option to skip the download metadata step.
Metadata Key format: RAW_META/{genesisHash}/{runtimeSpecVersion}
If the genesisHash
& runtimeSpecVersion
of the supplied metadata key match with connected chain,
then use the provided metadata, else we fetch it anew from chain.
Optional
runtimeOptional
scaledOptional
signedOptional
signerA signer instance to use for signing transactions
Optional
subscriptionsOptional
throwBy default, an UnknownApiError
error will be thrown out if an api is known (e.g: api.query.pallet.unknown
) upon evaluation.
When set this to false
, the api evaluation will simply return undefined
Customize hashing algorithm used