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.
108 questions
0
votes
0
answers
3
views
transfering business account limit in cashapp to personal account in cashap
how do I transfer funds from business account to personal account in the same from the same account
Prompted 98.5% of your portfolios Only you can see this $1,136,277.00 18 shares Day gain +$5,472.00 ...
0
votes
0
answers
8
views
Error: Inputs do not conform to this spec or are otherwise invalid. (Building Cardano Transaction with dAPP wallet using Vanilla JS)
I'm trying to build a transaction with dApp wallet(s). Following is my code:
async function buildAndSignTransaction(api, recipientAddressStr, amount) {
try {
// Convert recipient address ...
1
vote
1
answer
30
views
How to get a RewardAddress from an address using cardano-serialization-lib?
I have the following code to verify the signature of a message using CIP-8:
const decoded = COSESign1.from_bytes( Buffer.from(signedData.signature, "hex") );
const headermap = ...
0
votes
0
answers
28
views
Create cardano transaction for wallet signing using Cardano Serialization Lib
I am trying to generate a simple cardano transaction using Cardano Serialization Lib that simply sends some ADA. I want to sign the transaction using web3 wallet like Nami and verify that signature.
I ...
1
vote
1
answer
124
views
How to verify signed Tx and signer's address?
I am building dApps on cardano, and I faced an issue.
I was trying to let the users sign message to verify them. (using signData method of wallet)
But signData method is not supported for ledger type ...
0
votes
2
answers
226
views
get all transactions info of Cardano by using third party 'Blockfrost' with only 1 time call api?
I'm a noob about Cardano, i wonder if be able to get all transactions info of cardano by passing an specific address.
For example i have an specific address is:
...
1
vote
0
answers
57
views
Can we Make a Multi-witness transactions using cardano Serialization Lib?
My Goal is to Transfer NFTs from one Wallet to another and use second wallet to cover my transaction fee.
According to this article https://developers.cardano.org/docs/integrate-cardano/multi-witness-...
0
votes
1
answer
328
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:...
0
votes
2
answers
435
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 ...
0
votes
0
answers
118
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:
...
0
votes
3
answers
132
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 ...
1
vote
1
answer
130
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/...
1
vote
0
answers
59
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.
// ...
0
votes
2
answers
210
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 ...
0
votes
0
answers
81
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 ...
1
vote
1
answer
194
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 ...
1
vote
1
answer
115
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 ...
0
votes
1
answer
106
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 ...
2
votes
2
answers
234
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 ...
7
votes
0
answers
102
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 ...
1
vote
2
answers
83
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 ...
0
votes
1
answer
153
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-...
2
votes
2
answers
316
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 (...
0
votes
1
answer
61
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 ...
1
vote
1
answer
124
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.
...
0
votes
2
answers
68
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 ...
0
votes
1
answer
208
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:
...
0
votes
1
answer
161
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
...
0
votes
1
answer
150
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) ...
0
votes
1
answer
317
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')
...
0
votes
0
answers
109
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
...
1
vote
0
answers
182
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
...
0
votes
2
answers
399
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 ...
0
votes
1
answer
73
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 ...
4
votes
5
answers
513
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 [...
0
votes
1
answer
176
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 ...
2
votes
1
answer
95
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 ...
0
votes
1
answer
128
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 ...
1
vote
1
answer
230
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/...
1
vote
1
answer
64
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.
1
vote
0
answers
41
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-...
0
votes
1
answer
232
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 {
...
3
votes
2
answers
127
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?
1
vote
0
answers
27
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 ...
0
votes
1
answer
103
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,
&...
0
votes
1
answer
53
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"...
2
votes
1
answer
216
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 ...
2
votes
1
answer
192
views
What's the correct way of deserializing a UTxO?
I'm getting the following error when trying to deserialize a UTxO obtained using cardano-graphql:
Deserialization failed in TransactionUnspentOutput because: No variant matched
This is the code that ...
1
vote
1
answer
120
views
Rust Serialization Lib Minting NFT - Missing Key Witnesses Error on Submission
I am running into an error with the CSL Rust Lib when submitting a minting NFT tx. I am following a minimal example in JS https://gist.github.com/lovalabs/83d08796ab9ff65cbf188fbca8d03343 as a guide ...
0
votes
1
answer
117
views
What's the correct way of submitting a transaction using cardano-graphql?
I'm getting this error when trying to submit a transaction using graphql:
{
"errors": [
{
"message": "Deserialization failed in Transaction.metadata because: ...