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

x/lucid/src/mod.ts>C.MultiAsset#insert

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 C.MultiAsset.prototype.insert
import { C } from "https://deno.land/x/lucid@0.10.0/src/mod.ts";
const { MultiAsset } = C;

set (and replace if it exists) all assets with policy {policy_id} to a copy of {assets}

Parameters

policy_id
assets