Questions tagged [lucid]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 views

How to deserialize Datum using Lucid

The following code allows me to query a Datum from the blockchain using Lucid and Blockfrost: import { Blockfrost, Lucid } from "https://deno.land/x/[email protected]/mod.ts"; const lucid = ...
a_juggler's user avatar
0 votes
0 answers
26 views

How to Pull Transaction Information Using lucid-cardano Library in TypeScript?

I'm working on a Cardano project using TypeScript, and I'm trying to fetch transaction details using the lucid-cardano library. Specifically, I have a transaction hash and I'm interested in retrieving ...
Markos Girgis's user avatar
1 vote
1 answer
44 views

Extracting Metadata of an NFT using Lucid

I am trying to extract the metadata of any NFT of interest on-chain. According to Lucid documentation, you can use metadataOf(). Here is my code: const lucid = await Lucid.new( new Blockfrost( ...
jycappucino's user avatar
1 vote
1 answer
48 views

How to format metadata for Lucid?

Our metadata as a CIP 25 looks like this: Pool pm metadata tool We are using Lucid to attach it during transaction building in this way: const filename= "https://arweave.net/" + arweaveId ...
Sebpereira's user avatar
0 votes
1 answer
37 views

Error submitting a transaction (Error: PPViewHashesDontMatch)

I hope I can get help from someone on here. I built a minting transaction on preprod using Lucid that uses a validator that always pass, and I am stuck with this error: error: Uncaught (in promise) ...
jycappucino's user avatar
0 votes
0 answers
30 views

StakeCredentialHash - Lucid

I'm having difficulties getting the StakeCredentialHash from a privatekey. Using lucid At the moment i can get the paymentCredentialHash, but missing the stakeCredentialHash, i have to put it manualy. ...
Mars's user avatar
  • 1
0 votes
0 answers
27 views

Validating ecdsa signature in aiken

Im trying to let my validator validate my ecdsa signature yet I get a weird JSON error: Uncaught (in promise) SyntaxError: Unexpected non-whitespace character after JSON at position 4 My Validator for ...
Thomas's user avatar
  • 1
1 vote
1 answer
87 views

Issue with Lucid and sending tokens

Any ideas of why this isn't working? I obviously removed the Blockfrost ID and address, and I have enough tokens to send. For some reason it keeps saying Inputs Exhausted. Any help appreciated. import ...
lovetoshi's user avatar
0 votes
1 answer
18 views

After transaction, how to display Transaction ID?

After signing a transaction (using Lucid), how can i display the transaction id?
lovetoshi's user avatar
0 votes
0 answers
38 views

VSCode setup for Typescript with Lucid and Deno

Although all my code have been compiling successfully, in VSCode linting for .ts files, I get a warning message for "Could not find name Deno" and "Could not find module '"https://...
tyvan266's user avatar
0 votes
1 answer
52 views

Lucid Vesting demo, signing from two different accounts but same seed

I'm working through the beneficiary vesting example where we have two beneficiaries: beneficiary 2 (giver who can reclaim funds after deadline), and beneficiary 1 (must claim gift before deadline). In ...
tyvan266's user avatar
0 votes
1 answer
49 views

Lucid vesting demo

I'm running into the follow Lucid error from Week4 of Plutus pioneer program: /workspace/code/Week04/lecture# deno run -A lucid-vesting.ts error: Uncaught (in promise) TypeError: Cannot convert ...
tyvan266's user avatar
0 votes
1 answer
81 views

Error: encoding/hex: invalid byte: s When using Lucid calling payToContract

I am getting an issue when creating a Lucid transaction and calling payToContract I have created the datum and it is erroring on the line that converts this datum toHex With the following error: Error:...
David B's user avatar
  • 101
0 votes
1 answer
139 views

Lucid Cardano Datum Error

I'm trying to build lucid to connect with cardano smartcontract from scratch using webpack, but I always getting this error related to datum data Uncaught (in promise) TypeError: Cannot read ...
Erwin Kurnia's user avatar
0 votes
2 answers
104 views

Lucid Error "End of input in bytes"

I am running the simple vesting script from PPP for the first time with Lucid and I continuosly get an error which doesn't give me much to understand what could realistically be the source of. the ...
user3755529's user avatar
0 votes
2 answers
85 views

ScriptWitnessNotValidatingUTXOW while minting an NFT

I'm currently trying to create a minting process with lucid (v. 0.8.9) using Blockfrost on Mainnet. Minting policy: const mintingPolicy: MintingPolicy = lucid.utils.nativeScriptFromJson({ type: &...
Kostia's user avatar
  • 1
1 vote
1 answer
131 views

Verify Tx Signature

Say I created a multi-sig transaction and I am now gathering signatures using the Cardano-multiplatform-library. How can I check that the signature is correct for my transaction body, and the signers ...
Leo's user avatar
  • 56
0 votes
0 answers
49 views

PaymentPubKeyHashes don't match

I have a structured datum like: data VestingDatum = VestingDatum { beneficiary :: PaymentPubKeyHash , deadline :: POSIXTime } ...
Adam's user avatar
  • 343
2 votes
1 answer
165 views

How to hide API keys when using Lucid-Cardano

Lucid-Cardano requires me to expose my api key on my client side of my app. How can I go around hiding this. I have tried to call my express backend to make a blockfrost request so that I can keep my ...
Franklin McMillan's user avatar
0 votes
1 answer
185 views

Problem when importing Lucid in Next.js project with Typescript

I am getting the following error when trying to import lucid-cardano in a Next.js Typescript project: TypeError: Cannot set property Headers of #<Object> which has only a getter at file:/...
Falcon Stakepool's user avatar
1 vote
1 answer
109 views

How can I add Webpack to a React app so I can use Lucid with it?

I have a React app (created with npx create-react-app) that doesn't have Webpack installed. I want to add lucid-cardano to it. Going through Lucid documentation, I found that Webpack is a dependency, ...
Falcon Stakepool's user avatar