Skip to main content

Questions tagged [lucid]

The tag has no usage guidance.

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

Error Applying Redeemer Lucid

I get this error when trying to unlock funds from an UTXO in a contract address: Uncaught (in promise) "Redeemer (Spend, 0): Attempted to apply a non-function:\n\nCon(\n Unit,\n)\n\nExBudget {\...
user3755529's user avatar
0 votes
0 answers
16 views

How to Write Nested Datum in Lucid

I have this in Aiken: pub type Player { X, O, } pub type Board = List<List<Option<Player>>> let datum = Datum { board: [[Some(X), Some(O), Some(O)], [Some(X), Some(O), None],...
user3755529's user avatar
0 votes
0 answers
19 views

Minting and spending from the same script in a single transaction

I have a state NFT token locked in an hybrid script written in Aiken. I want to : spend this NFT state to the script itself ( with a new datum which stores the new issuance state ) mint tokens I want ...
regisg's user avatar
  • 191
0 votes
1 answer
14 views

Any helpful resources to build with the Laravel framework and php?

There are good libraries for Javascript frameworks to build dApp like Meshjs, Lucid, etc. I'm new to PHP and the Laravel framework. Is it possible to integrate those JavaScript libraries, with the ...
Fayaz's user avatar
  • 1
0 votes
1 answer
167 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
77 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
90 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
107 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
100 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
56 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
37 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
152 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
24 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
64 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
81 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
99 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
210 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
219 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
159 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
109 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
177 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
  • 66
2 votes
1 answer
196 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
277 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
132 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