RPC endpoint and chainId
Last updated
Last updated
©2023 Startbahn, Inc.
While the default RPC endpoint and chainId are automatically configured in the StartrailSdk based on the environment you select, you can also overwrite them by specifying the values at the time of StartrailSdk instantiation. This is particularly useful in irregular cases that require immediate action or action without a StartrailSdk update, such as when
a particular RPC endpoint experiences downtime
the chainId is changed due to network deprecation
As the production environment is connected to the Polygon network while the staging environment is connected to the Amoy network, it's essential to provide the same rpcEndpoint as the network to which the StartrailSdk is connected.
It's important to note that Startrail smart contracts reside in the Polygon and Amoy blockchains, and changing the chainId to other networks is not supported.
One of the following RPC endpoints is selected after a live status check from StartrailSdk, following the order from the top under the hood.
Env | Staging | Production |
---|---|---|
EVM network
Amoy
Polygon
Default RPC
Default ChainId
80002
137