Send Pledge back to Daedelus

I mean to create only the pool registration certificate (without delegation certification) and sign the transaction only for pool registration certificate

create the pool registration certificate with the new margin:

cardano-cli stake-pool registration-certificate
–cold-verification-key-file cold.vkey
–vrf-verification-key-file vrf.vkey
–pool-pledge
–pool-cost
–pool-margin
–pool-reward-account-verification-key-file stake.vkey
–pool-owner-stake-verification-key-file stake.vkey
–mainnet
–pool-relay-ipv4
–pool-relay-port
–metadata-url https://git.io/JJWdJ
–metadata-hash
–out-file pool-registration.cert


Draft the transaction

cardano-cli transaction build-raw
–tx-in #
–tx-out $(cat payment.addr)+0
–invalid-hereafter 0
–fee 0
–out-file tx.draft
–certificate-file pool-registration.cert


Calculate the fee

cardano-cli transaction calculate-min-fee
–tx-body-file tx.raw
–tx-in-count 1
–tx-out-count 1
–mainnet
–witness-count 1
–byron-witness-count 0
–protocol-params-file protocol.json


calculate the change for tx-out (not shows the command, check the guide)

expr - -


Build the transaction:

cardano-cli transaction build-raw
–tx-in #
–tx-out $(cat payment.addr)+
–invalid-hereafter
–fee
–out-file tx.raw
–certificate-file pool-registration.cert


Sign the transaction:

cardano-cli transaction sign
–tx-body-file tx.raw
–signing-key-file payment.skey
–signing-key-file stake.skey
–signing-key-file cold.skey
–mainnet
–out-file tx.signed

I still have the same error

~/cardano-my-node$ cardano-cli transaction submit \

--tx-file tx.signed \
--mainnet

Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 1577523)}) (SlotNo 21567701)))),LedgerFailure (UtxowFailure (UtxoFailure (FeeTooSmallUTxO (Coin 185081) (Coin 182045)))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (DeltaCoin 1533622402) (DeltaCoin 1533986492))))]

I think I need to restart a fresh and rebuild the node.

What is the best way to de-register and start again? I need to withdraw the funds out and recoup the deposit somehow

man, don’t reinstall. your node is up and running… right? you only need to change the margin… someone will help you and you will fix it right?

PS: to not loss your ADA you should save the cold keys, payment keys, etc… copy and keep them in a safe place like an usb … or even better on an offline device

I really need help now, I can’t send ADA out either, I just tired sending 10 ADA back, and i get a similar error.

$ cardano-cli transaction submit \

--tx-file tx.signed \
--mainnet

Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 1578661)}) (SlotNo 21568901))))]

All my keys are on an offline node, but something is broken, just struggling to work it out. I want to recreate payment and stake keys but I’m worried about my current ADA as it is tired to the payment.addr right?

can u show me what commands did u ran in order the modify ur margin?

for margin again
but remember you have to replace your info,
1.
cardano-cli shelley stake-pool registration-certificate --cold-verification-key-file cold.vkey --vrf-verification-key-file vrf.vkey --pool-pledge 20260000000 --pool-cost 340000000 --pool-margin 0.01 --pool-reward-account-verification-key-file stake.vkey --pool-owner-stake-verification-key-file stake.vkey --mainnet --pool-relay-ipv4 46.101.122.6 --pool-relay-port 3000 --metadata-url https://git.o/JASnP --metadata-hash 6562b0af9bc4d9b1884ce469a0ebc303e64a5ce8dbeb3855dc685b36d371 --out-file pool-registration.cert

Generating your delegation certifcate (not again)

cardano-cli shelley stake-address delegation-certificate --stake-verification-key-file stake.vkey --cold-verification-key-file cold.vkey --out-file delegation.cert

3.Let’s build a draft transaction, so we can calculate the fees
cardano-cli shelley transaction build-raw --tx-in ed8b79eec2a3d42ba361f0f3b9f255cb755ff7ce8c7e498bbecd7de14ae#0 --tx-in f6d6a47333199a6281bcf326ed8a987d1a0fe9435e9233bd743df5ac71#0 --tx-out $(cat payment.addr)+0 --ttl 0 --fee 0 --out-file tx.raw --certificate-file pool-registration.cert --certificate-file delegation.cert

  1. And calculate the fees:
    cardano-cli shelley transaction calculate-min-fee --tx-body-file tx.raw --tx- in -count 1 --tx-out-count 1 --mainnet --witness-count 1 --byron-witness-count 0 --protocol-params-file protocol.json
    184861

expr TheAmountInLovelacesInYourUTxO - 500000000 – TheFeeInLovelaces
20262948401 – 188293 = 20262760108

  1. Calculate the TTL, and build the transaction
    cardano-cli shelley query tip --mainnet
    expr slotNo + 1000

cardano-cli shelley transaction build-raw --tx-in ed8b79eec2a3d42ba361f0f3b9f159b4255cbe8c7e498bbecd7de14ae#0 --tx-in f6d6a47333199a62931acf326ed8a987d1a0fe9435e9233bd743df5ac71#0 --tx-out $(cat payment.addr)+20262760108 --ttl 16251879 --fee 188293 --out-file tx.raw --certificate-file pool-registration.cert --certificate-file delegation.cert

7.Sign the transaction
cardano-cli shelley transaction sign --tx-body-file tx.raw --signing-key-file payment.skey --signing-key-file stake.skey --signing-key-file cold.skey --mainnet --out-file tx.signed

8.And submit!
cardano-cli shelley transaction submit --tx-file tx.signed --mainnet

Right, somehow managed to send a transaction and I see 1 Processed TX on relay node.

There was definitely a syntax error on my part, have to wait until the next epoch to see the changes

Many thanks for all the assistance.

you don’t have to wait… you did it !!!

image

2 Likes

Great, thank you!

This command doesn’t work yet, but the pool is registered?

cardano-cli query ledger-state --mainnet --allegra-era | grep publicKey | grep $(cat stakepoolid.txt)

Also how will this command work?

cardano-cli query stake-address-info
–address $(cat stake.addr)
–allegra-era
–mainnet

stake.addr is on the cold node right, so how can i cat it on block producer?

I see your pool in yoroi, I check in daedalus view and PLUTO is there…
I don’t understand… you want to move some files? you have to do it with sftp via filezilla:

  • connect to your node and donwload files to your local machine… laptop or desktop…

!!! Be carefull to not delete them from server till u are not sure you copied !!!

but why only 1 transactions… do you have OUT/IN PEERS?

are u running on your relay topology updater script?

Cheers,

Might need to rerun the topology updater?

on your relay sure. you need to not stop the topology update script (should run 1/hour) otherwise your node will be declared offline

BUT only on Relay.
Producer - Relay use static configuration

of course you should have more, you don’t have IN peers yet (only Producer) that’s why you are not seing TX
keep the node up and after12-24 hours try to restart it again… you should see more IN PEERS.
But keep your topology updater running.

OK. delete both pictures , ur Producer IP it is visible…
you are running topology updater script also on your Producer (u shouldn’t)?
Wait till tomorrow, restart ur node and see if more Peers are coming, it takes more time because other public relayd are already run and need to be restarted in order to connect yours.

2 Likes

It all working now after the repush of the topology. TXs flying in.

Thanks!

1 Like

@Alexd1985 deserves a Medal of Patience !

very informative read.

Thanks, Bas

2 Likes