Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/mod.ts>Lucid#switchProvider

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Go to Latest
method Lucid.prototype.switchProvider
Re-export
import { Lucid } from "https://deno.land/x/lucid@0.7.8/src/mod.ts";

Switch provider and/or network. If provider or network unset, no overwriting happens. Provider or network from current instance are taken then.

Parameters

optional
provider: Provider
optional
network: Network

Returns

Promise<Lucid>