Find the keyDeposit value. (params.json)

cardano-my-node$ keyDeposit=$(cat NODE_HOME/params.json | jq -r '.keyDeposit') cat: /home/xxx/cardano-my-node/params.json: No such file or directory ~/cardano-my-node echo keyDeposit: $keyDeposit
keyDeposit:

replace NODE_HOME with ur relative path and try again

1 Like

there is no params.json file in there

Hi!
Did you run this command:

cardano-cli query protocol-parameters \
    --mainnet \
    --allegra-era \
    --out-file params.json
1 Like

cardano-cli query protocol-parameters \

--mainnet \
--allegra-era \
--out-file params.json

cardano-cli: Network.Socket.connect: <socket: 10>: does not exist (No such file or directory)

Is your node running?

1 Like

it was running i guess it just needed a bit more time to sync the file is outputted thanks!

Ok, great! :slight_smile:

Okay having trouble on this if you dont mind

cardano-cli transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+0
–invalid-hereafter (( {currentSlot} + 10000))
–fee 0
–out-file tx.tmp
–allegra-era
–certificate stake.cert

What do I change, Slot tip? says invalid header needs to be higher than current slot tip.

-bash: 22511434 22511434 + 10000: syntax error in expression (error token is “22511434 + 10000”)

Is the node fully synced yet? Otherwise your currentSlot might be incorrect

I think i had it formatted incorrectly:

cardano-cli transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+0
–invalid-hereafter (( {22511434} + 10000))
–fee 0
–out-file tx.tmp
–allegra-era
–certificate stake.cert

response:

Usage: cardano-cli transaction build-raw [–byron-era | --shelley-era |
–allegra-era | --mary-era]
(–tx-in TX-IN) [–tx-out TX-OUT]
[–mint VALUE] [–invalid-before SLOT]
[–invalid-hereafter SLOT]
[–fee LOVELACE]
[–certificate-file FILE]
[–withdrawal WITHDRAWAL]
[–json-metadata-no-schema |
–json-metadata-detailed-schema]
[–script-file FILE]
[–metadata-json-file FILE |
–metadata-cbor-file FILE]
[–update-proposal-file FILE]
–out-file FILE
Build a transaction (low-level, inconvenient)

Block : 5379515 Tip (ref) : 22511618 │
│ Slot : 306817 Tip (node) : 22511617 │
│ Density : 4.933 Tip (diff) : 1 :slight_smile:

here is my ./gLive seems synced

Seems synced. Then I would re-run the tx but just put 22521434 instead of (( {22511434} + 10000)) to avoid formatting errors.

So remove the brackets?

Yes. What we want is to set an –invalid-hereafter higher than the current slot number with some margin for the transaction to be handled. In the guide they are fetching the current slot and adding 10000 to give it some time. Since we know the current slot we might as well do the addition ourselves to avoid errors. Probably the currentSlot variable was generated too long ago or has some other problem that we can dismiss by adding our own slot number.

Okay so does it look like this

cardano-cli transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+0
–invalid-hereafter 22522550
–fee 0
–out-file tx.tmp
–allegra-era
–certificate stake.cert

because this doesnt do anything

~/cardano-my-node$ cardano-cli transaction build-raw \

${tx_in} \
--tx-out $(cat payment.addr)+0 \
--invalid-hereafter 22523050 \
--fee 0 \
--out-file tx.tmp \
--allegra-era \
--certificate stake.cert

Missing: (–tx-in TX-IN)

Usage: cardano-cli transaction build-raw [–byron-era | --shelley-era |
–allegra-era | --mary-era]
(–tx-in TX-IN) [–tx-out TX-OUT]
[–mint VALUE] [–invalid-before SLOT]
[–invalid-hereafter SLOT]
[–fee LOVELACE]
[–certificate-file FILE]
[–withdrawal WITHDRAWAL]
[–json-metadata-no-schema |
–json-metadata-detailed-schema]
[–script-file FILE]
[–metadata-json-file FILE |
–metadata-cbor-file FILE]
[–update-proposal-file FILE]
–out-file FILE
Build a transaction (low-level, inconvenient)

https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#3-configure-the-nodes

these are the steps im using. Do I need to have the 2,000,000 and 340,000,000 in my wallet before doing these steps?

well i copied it differently and it worked all of a sudden thanks for the help

No problem, great that it works now :slight_smile:

1 Like