LockedGold

View and manage locked Celo Gold

Lock

Locks Celo Gold to be used in governance and validator elections.

USAGE
$ celocli lockedgold:lock
OPTIONS
--from=from (required)
--ledgerAddresses=ledgerAddresses [default: 1] If --useLedger is set, this will get the first N addresses
for local signing
--ledgerConfirmAddress Set it to ask confirmation for the address of the transaction from the
ledger
--ledgerCustomAddresses=ledgerCustomAddresses [default: [0]] If --useLedger is set, this will get the array of index
addresses for local signing. Example --ledgerCustomAddresses "[4,99]"
--useLedger Set it to use a ledger wallet
--value=value (required) The unit amount of Celo Gold (cGLD)
EXAMPLE
lock --from 0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95 --value 10000000000000000000000

See code: packages/cli/src/commands/lockedgold/lock.ts

Show

Show Locked Gold information for a given account. This includes the total amount of locked gold, the amount being used for voting in Validator Elections, the Locked Gold balance this account is required to maintain due to a registered Validator or Validator Group, and any pending withdrawals that have been initiated via "lockedgold:unlock".

USAGE
$ celocli lockedgold:show ACCOUNT
EXAMPLE
show 0x5409ed021d9299bf6814279a6a1411a7e866a631

See code: packages/cli/src/commands/lockedgold/show.ts

Unlock

Unlocks Celo Gold, which can be withdrawn after the unlocking period. Unlocked gold will appear as a "pending withdrawal" until the unlocking period is over, after which it can be withdrawn via "lockedgold:withdraw".

USAGE
$ celocli lockedgold:unlock
OPTIONS
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Account Address
--ledgerAddresses=ledgerAddresses [default: 1] If --useLedger is set, this will get the first N
addresses for local signing
--ledgerConfirmAddress Set it to ask confirmation for the address of the transaction from
the ledger
--ledgerCustomAddresses=ledgerCustomAddresses [default: [0]] If --useLedger is set, this will get the array of
index addresses for local signing. Example --ledgerCustomAddresses
"[4,99]"
--useLedger Set it to use a ledger wallet
--value=value (required) The unit amount of Celo Gold (cGLD)
EXAMPLE
unlock --from 0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95 --value 500000000

See code: packages/cli/src/commands/lockedgold/unlock.ts

Withdraw

Withdraw any pending withdrawals created via "lockedgold:unlock" that have become available.

USAGE
$ celocli lockedgold:withdraw
OPTIONS
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Account Address
--ledgerAddresses=ledgerAddresses [default: 1] If --useLedger is set, this will get the first N
addresses for local signing
--ledgerConfirmAddress Set it to ask confirmation for the address of the transaction from
the ledger
--ledgerCustomAddresses=ledgerCustomAddresses [default: [0]] If --useLedger is set, this will get the array of
index addresses for local signing. Example --ledgerCustomAddresses
"[4,99]"
--useLedger Set it to use a ledger wallet
EXAMPLE
withdraw --from 0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95

See code: packages/cli/src/commands/lockedgold/withdraw.ts