As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [cardano-serialization-lib]

For questions on how to use the cardano-serialization-library, a library for serialization & deserialization of data structures used in Cardano’s Haskell implementation of Shelley, along with useful utility functions.

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

NFT Minting with cip68 standard

I want to write the code for minting NFTs with CIP68 update. Like i need such NFTs whose metadata could be updated instead of minting the new NFT everytime. I searched about it and get to know that ...
duaa azhar's user avatar
0 votes
0 answers
37 views

Tx consuming script fails with: Caused by: (unConstrData #44000de140)... Third data argument, does not decode to a context when burning an NFT

I've this tx trying to submit to cardano-node 1.35.5: ...
leobelizquierdo's user avatar
0 votes
3 answers
67 views

Unlock NFT from smart contract by Cardano-serialization-library

I am trying to implement the Unlocking of NFT from an "always true" smart contract. I am using the Cardano serialization library for this. I can lock the NFT successfully, but when i unlock ...
duaa azhar's user avatar
1 vote
1 answer
47 views

I want to build a transaction to send Assets using cardano serialization lib

I want to transfer asset instead of ADA using cardano serialization Lib. I am new to cardano blockchain. I recently transferred ADA's build a transaction using this link so far https://github.com/...
Max's user avatar
  • 11
1 vote
0 answers
42 views

Building a transaction that will require both payment and stake key signature using Cardano Serialization Lib

Usually, when a build a simple transaction such as making a payment, the transaction usually requires the buyer's payment key. Here is an example transaction I made with Cardano Serialization Lib. // ...
Alexis's user avatar
  • 23
0 votes
2 answers
95 views

Cardano Multi-Sig Mint BabbageOutputTooSmallUTxO

I’m trying to build a multi-sig transaction to mint an NFT. The transaction will take some input from users wallet via coin selection and add an additional NFT as output. The problem begans, when the ...
Alexis's user avatar
  • 23
0 votes
0 answers
37 views

Different addresses from same mnemonic?

I want to generate an old Byron address. However, depending on which software I use (cardano-address or cardano-serialization-lib), I get a different result for the same mnemonic phrase. Here is my ...
Addr's user avatar
  • 11
0 votes
0 answers
22 views

Error signing transaction with cardano-wallet-js

I am trying to sign a transaction using cardano-wallet-js. The private key is being generated from Cardano-wallet. Here's the code snippet: rootKey = Seed.deriveRootKey([ 'script', vintage','...
Skelli's user avatar
  • 327
0 votes
0 answers
51 views

cardano-cli generated CBOR to serialization lib [BABBAGE]

I am creating a transaction using cardano-cli. After building, I sign it with some random private key, and return signed transaction CBOR to UI. UI takes the CBOR, removes my random witness which ...
serx's user avatar
  • 178
1 vote
1 answer
93 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
  • 46
0 votes
0 answers
7 views

Address() in @cardano-sdk/core is empty

S = require("@cardano-sdk/core") new S.CSL.Address() return Address{} According to documentation it should have methods associated. Any ideas what is happening ?
LKBH Pools's user avatar
1 vote
1 answer
65 views

How to install/use cardano-serialization-lib

I follow this guide to get start with cardano-serialization-lib. Install nodejs package with: npm i @emurgo/cardano-serialization-lib-nodejs Still can't get it running. The module 'rust-lib' can't be ...
Adam's user avatar
  • 343
0 votes
1 answer
57 views

Transaction in Cardano

I created transfer function with blockfrost.js and cardano-serialization-lib. I refered following code. https://github.com/blockfrost/blockfrost-js/tree/master/examples/simple-transaction When I try ...
Heindrick's user avatar
2 votes
2 answers
72 views

Collateral for new Wallets

New users of Cardano sometime want to get started quickly and often face the daunting task of understanding what collateral is. Then faced with the fact that they need to send some collateral to their ...
D S's user avatar
  • 312
0 votes
0 answers
8 views

how to safeguard custodial keys for my api using kms or other services? cardanocli-js

cli js in one of my project it requires me to store verification key file and signing key file inside a folder called priv in order to use the wallet I am wondering it is unsafe to store those keys in ...
Hari Krishna's user avatar
0 votes
0 answers
32 views

Issue in Submitting Native Minting Scripted Transaction with Ledger

Using CSL I have successfully built a minting transaction with a native script. Using Nami, Eternl or Flint not connected to hardware wallets I am able to sign the transaction and submit it. However, ...
Fourzin's user avatar
  • 37
7 votes
0 answers
90 views

Developers are having dismal experience building on Cardano [closed]

When developers get into plutus playground, 10 out pf 10 expect it to work like remix, an IDE. You put a code in. You compile and deploy. And then start interacting with the dApp. All in the same ...
Adam's user avatar
  • 343
1 vote
2 answers
47 views

Calculated fee too small for StakeRegistration cert submission via cardano-serialization-lib wallet connect

Having some issues getting a submit Stake Registration certificate using cardano-serialization-lib. The transaction builds, can can be signed, but what's weird is the correct fee is not being ...
Why_Is_This_Hard's user avatar
0 votes
1 answer
74 views

Compile errors when importing Cardano Serialization Lib Browser in React

I'm getting several compile errors as soon as I import @emurgo/cardano-serialization-lib-browser in my project, all of them similar to these: ERROR in ./node_modules/@emurgo/cardano-serialization-lib-...
Falcon Stakepool's user avatar
3 votes
2 answers
203 views

Plutus V2 Tx Building causing NonOutputSupplimentaryDatums error

I am stuck with this error, what's a NonOutputSupplimentaryDatums?: ""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (...
Will's user avatar
  • 1,132
0 votes
1 answer
39 views

Cardano Transaction Submit Errors

I am currently building a dApp on cardano using cardano-serialization-lib and wallets (Nami, Typhon, Yoroi). Since you have to configure TransactionBuilder with the latest Protocol Parameters, there ...
Tetiana Diachenko's user avatar
1 vote
1 answer
65 views

Sending consecutive transactions will result in an error

Sending consecutive transactions will result in an error. Using the simple-transaction example below, a transaction is created in Cardano-Serialization-Lib and sent to the blockchain using BrokFrost. ...
yousuke's user avatar
  • 11
0 votes
2 answers
48 views

Coin Selection for Multiasset

I am building an NFT marketplace on Cardano. To build my transactions I use cardano-serialization-lib. When I try to use add_inputs_from() with LargestFirstMultiAsset strategy to choose inputs for the ...
Tetiana Diachenko's user avatar
0 votes
1 answer
124 views

How to get TransactionUnspentOutput as a hex encoded bytes string programmatically

So basically I want to convert a normal UTxO hash like: 550665309dee7e2f64d13f999297f001763f65fe50bb05524afc0990c7dce0c3 to a TransactionUnspentOutput as a hex encoded bytes string like: ...
Jan Swoboda's user avatar
0 votes
1 answer
80 views

Convert UTxO to hex encoded bytes string

Hello I want to convert a normal UTxO transaction hash to an encoded bytes string. How do I do this? Help would be appreciated! something like ...
Jan Swoboda's user avatar
0 votes
1 answer
88 views

cardano serialization lib - Multiple addresses and stake keys

I was able to generate a single address following the guide. My question is regarding stake key. Is it necessary to derive a new stake key for each new address or can you just increment .derive(n + 1) ...
Renan Valentin Ferreira's user avatar
0 votes
1 answer
132 views

How to get PublicKey from PrivateKey

I want to retrieve the public key from a private key created via a mnemonic key. const { mnemonicToEntropy } = require('bip39'); const CardanoWasm = require('@emurgo/cardano-serialization-lib-nodejs') ...
korimusk's user avatar
  • 153
0 votes
0 answers
117 views

How to go from a bech32 address "addr_test...." to PubKeyHash

If you have the bech32 address and you need to find the PubKeyHash (aka PKH) you can do it with this snippet using the cardano-serialization-lib const sAddr = "...
D S's user avatar
  • 312
0 votes
0 answers
77 views

What does ExtraRedeemers error mean when call function in contract with nami wallet and cardano-serialization

Sometimes I face this issue when make action buy nft in contract. Sometimes it works. So I don't know what does this mean and how to fix it. transaction submit error ShelleyTxValidationError ...
Nguyen Huy Duc's user avatar
0 votes
0 answers
26 views

in min_ada_required() going down with Vasil HF

If I compare the two values given by CSL 10.0.04 with CSL 11 i get two different values, the 11.0 being lower my code: const asset = [ { unit: "...
Alicia Basilio's user avatar
0 votes
0 answers
123 views

How to use inline datum and reference inputs in serialization lib 11.0.0

I tried using with_plutus_data const settings = { protocolParams: { linearFee: { minFeeA: "44", minFeeB: "155381", }, minUtxo: "4310", ...
Angie Navia's user avatar
1 vote
0 answers
133 views

How build a transaction to add ADA and change the datum of a previous transaction with assets and ADA locked in a script

I have locked ADA and assets into a script. I want to use the last transaction output and the ADA of a wallet as inputs and I want to have an output with some extra ADA locked and the datum changed ...
Angie Navia's user avatar
0 votes
1 answer
183 views

@emurgo/cardano-serialization-lib-browser on NextJS error when running `npm run build`

I'm a complete NextJS / React and Wasm newbie, but I'm having fun learning and building a simple website. I've added @emurgo/cardano-serialization-lib-browser as a dep to my NextJS 17 project w/ npm i ...
Giovanni G's user avatar
0 votes
1 answer
53 views

Read key from cose_key returned in signData()

The following (await window.cardano['<wallet>'].enable()).signData('<addr>', '<payload>') Returns an object { key: <key>, signature: <sig> } I'm successfully parsing the ...
zing's user avatar
  • 135
0 votes
0 answers
23 views

Should you put the serialization library code in a express and node.js backend or just put it as helper function in your front-end app

So i am using the cardano-serialization-library to send transactions between addresses. Below is the code I am using. buildSendADATransaction = async () => { const txBuilder = await ...
szhang9921's user avatar
4 votes
5 answers
450 views

Smart contract is not working after Vasil Hardfork in testnet

My smart contracts deployed in testnet stoped working after the Vasil Hardfork. i get this error: ""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [...
Alicia Basilio's user avatar
0 votes
0 answers
46 views

Using a Private Key to Sign and Send Transactions using the cardano-serialization-library Programmatically

How do I send ADA from my address to another using the serialization-lib? The only documents I can find right now regarding the serialization-lib use the Wallet API to sign and send transactions. If I ...
szhang9921's user avatar
0 votes
1 answer
117 views

Programmatically Send Transactions From a Wallet Using Javascript

I am building an application that has a hot wallet that stores ADA that my user has deposited. After some business logic is met, I want to transfer funds from my hot wallet to another address. How do ...
szhang9921's user avatar
2 votes
1 answer
75 views

How to create an unspent UTXO with specific value

I want to create a script (smart-contract) utxo with a specific number of tokens (it can be an output of a transaction before) in cardano-serialization-lib - javascript. I need this utxo to be part of ...
pprs's user avatar
  • 91
0 votes
1 answer
97 views

How to Securely Serialise a Plutus Smart Contract Endpoint?

Assuming I made an arbitrary smart contract and want to serialise the endpoint after I have the validator hash and address hash, what should I do to ensure that the serialisation is as safe as ...
KryptoKing's user avatar
1 vote
1 answer
149 views

Convert Stake Key to Address

I am tiring to use Cardano Sterilization Lib to get the Stake/Usable address from Stake Hash or Address Hash. https://adaex.org/address/...
yungtechboy1's user avatar
1 vote
1 answer
42 views

I wanted to know how can i deploy my smart contract made on marlowe playground using blocky on cardano testnet and mainnet?

Please, it would be so helpful if somebody steps up and tell me the way to do it.
Vimannyu Singh Manhas's user avatar
1 vote
0 answers
33 views

PPViewHashesDon'tMatch Exception on submit transaction for Cardano serialization-lib version 10.0.x

On emurgo/cardano serialization versions 10.0.X receiving error on submit transaction that: https://drive.google.com/file/d/1SNpM1LtEDPnZPMQXdz1X_Ujiy_FW9BJW/view?usp=sharing Also, in emurgo/cardano-...
Hina Munir's user avatar
0 votes
1 answer
190 views

Error creating a transaction with Cardano Serialization Library

I am trying to create a transaction using the Cardano Serialization Library but I cannot figure out what is going wrong. The code is const BlockFrost = require('@blockfrost/blockfrost-js'); const { ...
Skelli's user avatar
  • 327
3 votes
2 answers
90 views

How to Get the Script Address of A Smart Contract?

Once I have written up the smart contract how to I get the script address value to be able to interact with the script whilst its on chain?
KryptoKing's user avatar
0 votes
0 answers
21 views

Receiving PPViewHashesDon'tMatch exception on Cardano Serialization versions >10.0.0

I am using Cardano serialization browser library version 10.2.0 and on submit transaction I receive this error every time. I am uncertain what is missing although it is building the transaction well ...
Hina Munir's user avatar
1 vote
0 answers
25 views

How to Send A Token to an Smart Contract Alongside a Datum?

I asked another question (How to Make Sure A Contract Is Signed By a Certain Party?) and got the answer I expected. It raised the secondary Question of how to send a token with a datum to a smart ...
KryptoKing's user avatar
0 votes
1 answer
68 views

How can I build a transaction to register a stake pool using Cardano Serialization Lib?

I have built the following transaction to register a stake pool: { "txHash": "0f874a3cb0ba57ed68a79601781eb9e29666f7f2f0e72ab4ed1f3cc9fcea7dee", "ttl": 60310548, &...
Falcon Stakepool's user avatar
0 votes
1 answer
40 views

How to convert UTxOs from Graphql to Cardano Serialization lib format?

I want to use this function as coin selection for my transactions: txBuilder.add_inputs_from(unspentOutputs, 3); The problem I have is I'm using cardano-graphql to retrieve UTxOs: { "data"...
Falcon Stakepool's user avatar
2 votes
1 answer
147 views

Get transaction unspent output value

I have payment signing key and staking signing key of my wallet. How can I get transaction unspent outputs with cardano-cli/cardano-serialization-lib/pycardano. I expect to get string like this ...
Pavel R's user avatar
  • 21