Giter Club home page Giter Club logo

Comments (6)

alessandrokonrad avatar alessandrokonrad commented on June 3, 2024

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.

Floatiez avatar Floatiez commented on June 3, 2024

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.

Floatiez avatar Floatiez commented on June 3, 2024

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.

Floatiez avatar Floatiez commented on June 3, 2024

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.

jonathanfishbein1 avatar jonathanfishbein1 commented on June 3, 2024

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.

jonathanfishbein1 avatar jonathanfishbein1 commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.