Comments (6)
You need to derive the private key from the root key. Just follow the correct derivation path according to the standards. Also keep in mind that if you select a wallet from a private key you end up creating an Enterprise Addess
without the staking key part. So if you have the funds locked at an address with a staking key then Lucid will not see those UTxOs.
from lucid.
Is this line const privateKey = rootKey.to_raw_key().to_bech32();
not deriving the private key from the root key? Would there not be a way to use just a regular address with stake key instead of an enterprise address?
from lucid.
I was able to get it working using the enterprise address generated at lucid.wallet.address(). Transactions will submit and post to the blockchain, but sometimes if I submit multiple tx in a row I get this:
Error: "transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (BabbageOutputTooSmallUTxO [((Addr Testnet (KeyHashObj (KeyHash \"5229a19dde7e37fa60dfcbb438165e43fe3d811ae4c7df513ed28107\")) StakeRefNull,Value 168090 (fromList [(PolicyID {policyID = ScriptHash \"8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3\"},fromList [(666c6f617469657a,1)])]),NoDatum,SNothing),Coin 1034400)]))])"
at Blockfrost._callee8$ (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:3296:21)
at tryCatch (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:141:40)
at Generator.invoke [as _invoke] (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:372:22)
at Generator.next (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:197:21)
at asyncGeneratorStep (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:3:24)
at _next (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:25:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
```
from lucid.
I was able to get it working using the enterprise address generated at lucid.wallet.address(). Transactions will submit and post to the blockchain, but sometimes if I submit multiple tx in a row I get this:
Error: "transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (BabbageOutputTooSmallUTxO [((Addr Testnet (KeyHashObj (KeyHash \"5229a19dde7e37fa60dfcbb438165e43fe3d811ae4c7df513ed28107\")) StakeRefNull,Value 168090 (fromList [(PolicyID {policyID = ScriptHash \"8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3\"},fromList [(666c6f617469657a,1)])]),NoDatum,SNothing),Coin 1034400)]))])" at Blockfrost._callee8$ (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:3296:21) at tryCatch (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:141:40) at Generator.invoke [as _invoke] (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:372:22) at Generator.next (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:197:21) at asyncGeneratorStep (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:3:24) at _next (file:///var/task/lucid/node_modules/lucid-cardano/dist/index.js:25:9) at processTicksAndRejections (node:internal/process/task_queues:96:5) ``` ```> ```
This was solved by ensuring the min amount of $tADA that accompanies any UTXO with a token is atleast 2. Something wrong with blockfrost API, not sure what exactly.
from lucid.
I seem to be experiencing this issue while trying to spend the funds here
https://preview.cardanoscan.io/address/60eefb5b9dbac4a380296de0655f6ace6c97e9b981eef89a7bf53dcd52
That is the address I get when I do lucid.wallet.address() and it doesnt have a staking componenet. I believe all my outputs have the minimum ada amount for all that have native tokens attached. This is a multisignature tx and it seems to be working fine on the client. This error is appearing on the server
from lucid.
I seem to be experiencing this issue while trying to spend the funds here
https://preview.cardanoscan.io/address/60eefb5b9dbac4a380296de0655f6ace6c97e9b981eef89a7bf53dcd52
That is the address I get when I do lucid.wallet.address() and it doesnt have a staking componenet. I believe all my outputs have the minimum ada amount for all that have native tokens attached. This is a multisignature tx and it seems to be working fine on the client. This error is appearing on the server
I'm good
from lucid.
Related Issues (20)
- Unable to build a "Bid transaction" of an english auction with lucid API HOT 2
- Wallet from seed doesn't sign transaction spending only UTXOs locked with enterprise address HOT 1
- How to build transaction whose input is from zero address and output is also zero address? HOT 2
- Potential External Memory Leak - External Resources not being collected. HOT 2
- Unclear mapping of data structures between lucid and aiken HOT 1
- Add Docs for Vite/SvelteKit HOT 1
- Nami requests signature fee instead of requesting payment?
- Nami requests signature fee instead of requesting payment? HOT 1
- next 13 and lucid HOT 2
- No "exports" main defined in package.json HOT 2
- Fee Estimation issue when building contract remdemption TX on the backend. HOT 1
- `'amounts-as-strings': 'true'` for Maestro provider endpoints
- "Max collateral inputs reached" HOT 2
- Merging change utxos in minting transaction HOT 1
- No "exports" main defined while using lucid-cardano with typescript.
- vite node vue3 http://127.0.0.1:4001/node_modules/.vite/deps/cardano_multiplatform_lib_bg.wasm 404 (Not Found)
- Unlock transaction: Uncaught (in promise) Redeemer (Spend, 0): Failed to deserialise PlutusData using UnConstrData: HOT 7
- Nextjs 14 and context
- How to use blueprint.ts?
- Could not serialize the data: TypeError: Cannot read properties of undefined (reading 'plutuslist_new') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucid.