Wax Chain API errors are not always reported as API errors in TS library

Example call:

await wax.api.database_api.find_accounts({ accounts: ["asd asd asd  aads "], delayed_votes_active: true });

reports:

image

Also it would be great to have some kind of utility function to extract API message in simplified form / internal WASM error FC message extractor