UrlRequiredError
Thrown by createTransport when no URL is supplied and the chain config also lacks one.
Definition
class UrlRequiredError extends BaseError {
constructor()
}Fields
Inherits shortMessage ("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport."), name from BaseError.
Construction
The transport throws this during client creation:
import { createBaseClient, createTransport } from "@left-curve/sdk"
// No URL on transport, no URL on chain → UrlRequiredError
const transport = createTransport()
createBaseClient({
chain: { id: "x", name: "x", url: "", nativeCoin: "x", blockExplorer: {} as any },
transport,
})Notes
- Pass a URL to
createTransport(url)or setchain.urlto fix.