Kupmios
Usage example to initialize Lucid with Kupmios:
import { Lucid, Kupmios } from "@evolution-sdk/lucid";
const lucid = await Lucid(
new Kupmios(
"http://localhost:1442", // Kupo endpoint
"http://localhost:1337" // Ogmios endpoint
),
"Preview"
);
If you have API keys
const lucid = await Lucid(
new Kupmios(
"http://localhost:1442",
"http://localhost:1337",
{
kupoHeader: { "priv-api-key": "<kupo-api-key>" }, // for example: "dmtr-api-key": "<kupo-api-key>"
ogmiosHeader: { "priv-api-key": "<ogmios-api-key>" },
},
),
"Preview",
);
Last updated on