Failing to register stake-pool

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.json

Generate 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.cert

Generate 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.cert

Draft 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.cert

Calculate 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.json

196477 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.cert

Sign 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.signed

Submit 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))))]

I just did the same thing today and running 1.19.0 , and for Get Pool ID I had to alter the command to ardano-cli shelley stake-pool id --verification-key-file cold.vkey –output-format “hex” . After I did that the output generated by that command resulted in verification success when running next command to “Check for the presence of your poolID in the network ledger state, with”

As of February 2021. Use this command
cardano-cli stake-pool id --output-format hex --cold-verification-key-file cold.vkey