Skip to content

Commit

Permalink
Update the usage instructions for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
niran committed Dec 3, 2024
1 parent efc528f commit 349aad0
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example Keyspace Client
# Keyspace Client Library

An example Keyspace client implemented in TypeScript. This client is the basis for the [Keyspace documentation](https://docs.key.space/) and will eventually become a client library for Keyspace.
A Keyspace client library implemented in TypeScript. This client is also the basis for the [Keyspace documentation](https://docs.key.space/).

## Install Dependencies
```bash
Expand Down Expand Up @@ -55,11 +55,14 @@ bun run scripts/send-eth.ts

| Argument | Environment Variable | Description |
| --- | --- | --- |
| --keystore-id | KEYSPACE_KEY | The wallet's Keyspace key |
| --account | | The account of the keystore wallet to send from |
| --owner-index | | The index of the owner (default: 0) |
| --initial-config-data | | The initial config data needed to deploy the wallet |
| --private-key | PRIVATE_KEY | secp256k1 private key or P256 JWK |
| --to | | The address to send to |
| --signature-type | | secp256k1 (default) or webauthn |

Make sure there's ETH in the account you're sending from. You can get the Ethereum address of the smart wallet by running `bun run scripts/get-keyspace-key.ts`.
Make sure there's ETH in the account you're sending from. You can get the Ethereum address of the smart wallet by running `bun run scripts/get-account.ts`.


### Change Owner
Expand All @@ -69,10 +72,14 @@ bun run scripts/change-owner.ts

| Argument | Environment Variable | Description |
| --- | --- | --- |
| --keystore-id | KEYSPACE_KEY | The wallet's Keyspace key |
| --private-key | PRIVATE_KEY | secp256k1 private key or P256 JWK |
| --new-private-key | NEW_PRIVATE_KEY | new secp256k1 private key or P256 JWK |
| --account | | The account of the keystore wallet |
| --owner-index | | The index of the owner (default: 0) |
| --initial-config-data | | The initial config data needed to deploy the wallet |
| --private-key | PRIVATE_KEY | Current private key of the owner |
| --config-data | | Current config data for the keystore wallet (hex string) |
| --owner-bytes | | The owner bytes to change in the keystore wallet |
| --signature-type | | secp256k1 (default) or webauthn |
| --remove | | Flag to remove the owner instead of adding (optional) |

## Build Documentation

Expand Down

0 comments on commit 349aad0

Please sign in to comment.