EDIT UPDATE
I managed to send the transaction and the transaction was processed, so issue below is no longer relevant. However, I still cannot see the pool when I search for it:
cardano-cli shelley query ledger-state --mainnet | grep publicKey | grep
Help?
I am trying to register my stake pool by following https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register_stakepool.html.
This is what I did:
Register pool:
cardano-cli shelley stake-pool metadata-hash --pool-metadata-file pool_Metadata.jsonGenerate Stake pool registration certificate
cardano-cli shelley stake-pool registration-certificate
–cold-verification-key-file pool-keys/cold.vkey
–vrf-verification-key-file pool-keys/vrf.vkey
–pool-pledge 8000000000
–pool-cost 340000000
–pool-margin 0.05
–pool-reward-account-verification-key-file stake.vkey
–pool-owner-stake-verification-key-file stake.vkey
–mainnet
–pool-relay-ipv4 <IP_ADDRESS>
–pool-relay-port 3000
–metadata-url <THE_URL>
–metadata-hash <THE_HASH>
–out-file pool-registration.certGenerate delegation certificate pledge
cardano-cli shelley stake-address delegation-certificate
–stake-verification-key-file stake.vkey
–cold-verification-key-file pool-keys/cold.vkey
–out-file delegation.certDraft transaction
cardano-cli shelley transaction build-raw
–tx-in <TX_IN>#0
–tx-out $(cat payment.addr)+0
–ttl 7655218
–fee 0
–out-file tx.draft
–certificate-file pool-registration.cert
–certificate-file delegation.certCalculate fee
cardano-cli shelley transaction calculate-min-fee
–tx-body-file tx.draft
–tx-in-count 1
–tx-out-count 1
–mainnet
–witness-count 3
–byron-witness-count 0
–protocol-params-file protocol.json196477 Lovelace
Calculate balance
expr 9497639122 - 500000000 - 196477
Build transaction
cardano-cli shelley transaction build-raw
–tx-in <TX_IN>#0
–tx-out $(cat payment.addr)+8997442645
–ttl 7655218
–fee 196477
–out-file tx.raw
–certificate-file pool-registration.cert
–certificate-file delegation.certSign transaction
cardano-cli shelley transaction sign
–tx-body-file tx.raw
–signing-key-file payment.skey
–signing-key-file stake.skey
–signing-key-file pool-keys/cold.skey
–mainnet
–out-file tx.signedSubmit transaction
cardano-cli shelley transaction submit
–tx-file tx.signed
–mainnet
I follow all the steps, but in the end I receive the following error:
Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Coin 9497639122) (Coin 8997639122))))]