Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot move my stakes #287

Open
dev-dantealighieri opened this issue Feb 19, 2025 · 6 comments
Open

cannot move my stakes #287

dev-dantealighieri opened this issue Feb 19, 2025 · 6 comments
Labels
Not Supported Yet question Further information is requested

Comments

@dev-dantealighieri
Copy link

hi,

i have some scripts that i built for my ada stakings, but after the hard fork i cannot use them, i get errors like ConwayWdrlNotDelegatedToDRep. I want to fix this because i manage my stakes from scripts, and currently i cannot move my old rewards, and i cannot move my rewards in the accounts that are created after the hard fork, what should i do during staking to set all votes abstain. heres my stake transaction, what do i need to change in order to solve this issue

'Error: Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraConway (ApplyTxError (ConwayWdrlNotDelegatedToDRep (KeyHash {unKeyHash = "9397dc4...."} :| []) :| []))'
... // inputs utxos here
  outputs.push({
    operation_identifier: {
      index: mainIndex++,
      network_index: 0,
    },
    related_operations: [] as [],
    type: OP_TYPE.STAKE_REGISTRATION,
    status: OP_STATUS.SUCCESS,
    metadata: {
      staking_credential: {
        hex_bytes: delegator.publicKey,
        curve_type: EDWARDS25519,
      },
    },
  });

  outputs.push({
    operation_identifier: {
      index: mainIndex++,
      network_index: 0,
    },
    related_operations: [] as [],
    type: OP_TYPE.STAKE_DELEGATION,
    status: OP_STATUS.SUCCESS,
    metadata: {
      staking_credential: {
        hex_bytes: delegator.publicKey,
        curve_type: EDWARDS25519,
      },
      pool_key_hash: validator.address,
    },
  });
 ... // output utxos here
@matiwinnetou
Copy link
Collaborator

As it clearly says: "ConwayWdrlNotDelegatedToDRep", meaning you have to delegate to a dRep before you can move your stakes. This is not the right place to discuss this though. Are you using Rosetta Java?

@matiwinnetou matiwinnetou added the question Further information is requested label Feb 19, 2025
@dev-dantealighieri
Copy link
Author

yes im using rosetta java, how can i do this using your api? cardano-rosetta is not supporting this

@Kammerlo
Copy link
Member

Sorry, I think wasn't clear in my last comment, when I was referring to cardano-rosetta I was talking about cardano-rosetta-java. This isn't currently supported for both.
Cardano-rosetta will be set to deprecated soon and the feature will be implemented in cardano-rosetta-java. But it is not yet available.

@dev-dantealighieri
Copy link
Author

how can i solve this issue? i want to solve this using rosetta or the cardano serialization lib and broadcasting via rosetta, is this possible?

@Kammerlo
Copy link
Member

@dev-dantealighieri I hope the answer from my colleague helps: #285 (comment)

Since it's currently not possible to do it via rosetta.

@dev-dantealighieri
Copy link
Author

hi again,

one final question, can i submit the signed abstain transaction that i created via cardano-serialization-lib via rosetta, or should i use a bare cardano node for this?

thanks, dante

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not Supported Yet question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants