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

x/lucid/src/mod.ts>C.Int#as_negative

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
Go to Latest
method C.Int.prototype.as_negative
import { C } from "https://deno.land/x/lucid@0.10.5/src/mod.ts";
const { Int } = C;

BigNum can only contain unsigned u64 values

This function will return the absolute BigNum representation only in case the underlying i128 value is negative.

Otherwise nothing will be returned (undefined).