FAQ
Common gotchas and how-tos
Last updated
Was this helpful?
Common gotchas and how-tos
Last updated
Was this helpful?
Registry: ERROR: createType
errorsThis error indicates that the indexer type definitions are not properly set. Hydra Indexer v3 takes the default types from @polkadot/api@4.2.1
which is compatible with runtimes built on Substrate 3.x but may cause errors when run against older versions of Substrate
Make sure that
All the custom types are properly defined in the type definition json and the indexer has picked them up
Adress
and Signature
are decoded properly. may be helpful for troubleshooting
EventContext
has an extrinsic
field containing all the relevant extrinsic data if the event was emitted by an extrinsic. Further, one can create a type-safe extrinsic class using the constructor method generated by typegen.
Export the data into a json file and load into the database via a one-off preBlockHook at the desired height. See for more details.
To inject some new data, define a one-off block hook triggered at the block height with the upgrade. In order to have different versions of event/extrinsic handlers for pre- and post- upgrade, use specVersion
.