Closed fabianbormann closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
mesh-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 25, 2024 3:50pm |
@fabianbormann is attempting to deploy a commit to the MeshJS Team on Vercel.
A member of the Team first needs to authorize it.
Set the default Koios API version to "1" since [POST] https://preprod.koios.rest/api/v0/address_info returns a
404
.Previously, there was no error handling in place if no Koios API key had been provided; it would result in a
403
error due to a malformed API token, as the authentication header was set tobearer undefined
. This issue caused fetchAddressUTxOs to simplyreturn []
without throwing an error (debugging took a while 😉). Therefore, a check has been added to the constructor of KoiosProvider, ensuring that the authentication header is not added if no header has been provided. Consequently, Koios now defaults (without providing an API token) to using the public tier instead of the free tier plan: https://koios.rest/pricing/Pricing.html. It may trigger a CORS error in a browser setup and a warning could make sense, as the public tier has CORS restrictions. However, if you use@meshjs/core
instead oflucid
to build the off-chain part of Aiken smart contracts (locally outside the browser world), this setup is quite lightweight and powerful from a technical standpoint.