Closed shrpne closed 1 year ago
Hello @shrpne! Could you describe a bit reasons why you need it?
I use Moralis SDK on the web, i can't use default api url deep-index.moralis.io/api
for few reasons:
So i use thin proxy, which adds apiKey to requests and adds CORS headers to responses. And i need to pass url of my proxy to SDK
We like this idea. We will add this feature soon. Meanwhile you can fork the repo and work on the local version.
Hello @shrpne! Could you check the 2.19.0 version?
Moralis.start({
apiKey: '<api_key>',
evmApiBaseUrl: 'https://my-website.com/moralis-api'
});
For now you need to set a fake API token, because the SDK requires that. We will change that soon.
Everything works fine, thank you!
New Feature Request
Checklist
Current Limitation
Currently it's impossible to override baseUrl in EvmApi
Feature / Enhancement Description
Please add option to pass custom baseUrl to EvmApi
create
function and constructor