Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/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.
Very Popular
Latest
method Lucid.prototype.switchProvider
Re-export
import { Lucid } from "https://deno.land/x/lucid@0.10.7/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>