UNPKG

@account-kit/infra

Version:

adapters for @aa-sdk/core for interacting with alchemy services

24 lines 904 B
import {} from "@aa-sdk/core"; import {} from "viem"; import { BaseError } from "./base.js"; export class InvalidRpcUrlError extends BaseError { constructor(context) { super(["RPC Url not provided"].join("\n"), { details: [ "If you are passing in a chain object and only an API key, make sure to use the chain object exported from @aa-sdk/core", "Otherwise, pass in an RPC URL directly", ].join("\n"), metaMessages: [ `Chain: ${JSON.stringify(context.chain, null, 2)}`, `ConnectionConfig: ${JSON.stringify(context.connectionConfig)}`, ], }); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: "InvalidRpcUrlError" }); } } //# sourceMappingURL=rpcUrl.js.map