1.0.0 • Published 5 months ago

@attestprotocol/stellar-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Attest Stellar CLI

This is a command-line interface for interacting with the Attest protocol on the Stellar blockchain.

Features

  • Create and fetch schemas
  • Create, fetch, and revoke attestations
  • Register and fetch attestation authorities

Installation

npm install -g @attestprotocol/stellar-cli

Usage

Schema Operations

Create a schema:

attest-stellar schema --action=create --json-file=sample.json --signer-key=<signer-key>

Fetch a schema:

attest-stellar schema --action=fetch --uid=<schema-uid> --signer-key=<signer-key>

Attestation Operations

Create an attestation:

attest-stellar attestation --action=create --schema-uid=<schema-uid> --json-file=<attestation-data.json> --signer-key=<signer-key>

Fetch an attestation:

attest-stellar attestation --action=fetch --uid=<attestation-uid> --signer-key=<signer-key>

Revoke an attestation:

attest-stellar attestation --action=revoke --uid=<attestation-uid> --signer-key=<signer-key>

Authority Operations

Register an authority:

attest-stellar authority --register --signer-key=<signer-key> [--url=<custom-url>]

Fetch an authority:

attest-stellar authority --fetch --signer-key=<signer-key> [--url=<custom-url>]

License

MIT