Interact with ODIS and the attestations service
Outputs the set of validators currently participating in BFT and which ones are participating in Celo's lightweight identity protocol
Outputs the set of validators currently participating in BFT and which ones are participating in Celo's lightweight identity protocol​USAGE$ celocli identity:current-attestation-services​OPTIONS-x, --extended show extra columns--columns=columns only show provided columns (comma-separated)--csv output is csv format [alias: --output=csv]--filter=filter filter property by partial string matching, ex: name=foo--no-header hide table header from output--no-truncate do not truncate output to fit screen--output=csv|json|yaml output in a more machine friendly format--sort=sort property to sort by (prepend '-' for descending)
See code: src/commands/identity/current-attestation-services.ts​
Looks up attestations associated with the provided phone number. If a pepper is not provided, it uses the --from account's balance to query the pepper.
Looks up attestations associated with the provided phone number. If a pepper is not provided, it uses the --from account's balance to query the pepper.​USAGE$ celocli identity:get-attestations​OPTIONS--from=from Account whose balance to use for querying ODIS for thepepper lookup​--identifier=identifier On-chain identifier​--network=network The ODIS service to hit: mainnet, alfajores,alfajoresstaging​--pepper=pepper ODIS phone number pepper​--phoneNumber=phoneNumber Phone number to check attestations for​EXAMPLESget-attestations --phoneNumber +15555555555 --from0x47e172F6CfB6c7D01C1574fa3E2Be7CC73269D95​get-attestations --phoneNumber +15555555555 --pepper XgnKVpplZc0p1​get-attestations --identifier0x4952c9db9c283a62721b13f56c4b5e84a438e2569af3de21cb3440efa8840872
See code: src/commands/identity/get-attestations.ts​
Queries ODIS for the on-chain identifier and pepper corresponding to a given phone number.
Queries ODIS for the on-chain identifier and pepper corresponding to a given phone number.​USAGE$ celocli identity:identifier​OPTIONS--context=context mainnet (default), alfajores, oralfajoresstaging​--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) The address from whichto perform the query​--phoneNumber=+14152223333 (required) The phone number forwhich to query the identifier.Should be in e164 format withcountry code.​EXAMPLEidentifier --phoneNumber +14151231234 --from0x5409ed021d9299bf6814279a6a1411a7e866a631 --context alfajores
See code: src/commands/identity/identifier.ts​
Tests whether the account has setup the attestation service properly by calling the test endpoint on it
Tests whether the account has setup the attestation service properly by calling the test endpoint on it​USAGE$ celocli identity:test-attestation-service​OPTIONS--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Your validator's signeror account address​--message=message (required) The message of the SMS​--phoneNumber=+14152223333 (required) The phone number to sendthe test message to​--provider=provider Test a specific provider (try"twilio" or "nexmo")​EXAMPLEtest-attestation-service --from 0x97f7333c51897469E8D98E7af8653aAb468050a3
See code: src/commands/identity/test-attestation-service.ts​
Withdraw accumulated attestation rewards for a given currency
Withdraw accumulated attestation rewards for a given currency​USAGE$ celocli identity:withdraw-attestation-rewards​OPTIONS--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address towithdraw from. Can be theattestation signer addressor the underlying accountaddress​--tokenAddress=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d The address of the tokenthat will be withdrawn.Defaults to cUSD
See code: src/commands/identity/withdraw-attestation-rewards.ts​