{"id":25352067,"url":"https://github.com/base/keyspace-client","last_synced_at":"2025-04-07T05:10:05.138Z","repository":{"id":245000813,"uuid":"816598250","full_name":"base/keyspace-client","owner":"base","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-11T03:22:33.000Z","size":575,"stargazers_count":60,"open_issues_count":6,"forks_count":40,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-31T04:05:40.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://keyspace-client.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/base.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T04:07:20.000Z","updated_at":"2025-03-24T13:23:59.000Z","dependencies_parsed_at":"2024-06-18T23:56:02.852Z","dependency_job_id":"27d9ada6-4ad5-48af-9eb1-9b7ce1678d53","html_url":"https://github.com/base/keyspace-client","commit_stats":null,"previous_names":["base-org/keyspace-client"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fkeyspace-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fkeyspace-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fkeyspace-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fkeyspace-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base","download_url":"https://codeload.github.com/base/keyspace-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595334,"owners_count":20963943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-14T18:14:32.675Z","updated_at":"2025-04-07T05:10:05.100Z","avatar_url":"https://github.com/base.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keyspace Client Library\n\nA Keyspace client library implemented in TypeScript. This client is also the basis for the [Keyspace documentation](https://docs.key.space/).\n\n## Install Dependencies\n```bash\nbun install\n```\n\n## Create Private Keys\n\n### secp256k1 (Ethereum EOA)\n\n```bash\ncast wallet new\n```\n\n### P256 (secp256r1, Passkeys)\n\n```bash\nbun run scripts/create-p256-key.ts\n```\n\n## Configuration\n\n`bun` automatically loads environment variables from a `.env` file. Create a `.env` file in the root of the project.\n\n```bash\ntouch .env\n```\n\n| Environment Variable | Description |\n| --- | --- |\n| RPC_URL | Ethereum RPC URL for general RPC calls |\n| BUNDLER_RPC_URL | Ethereum RPC URL for ERC-4337 calls |\n| KEYSPACE_RPC_URL | Keyspace RPC URL |\n| RECOVERY_RPC_URL | Recovery Service RPC URL |\n\n## Scripts\n\n### Get Account\n```bash\nbun run scripts/get-account.ts\n```\n\n| Argument | Environment Variable | Description |\n| --- | --- | --- |\n| --private-key | PRIVATE_KEY | secp256k1 private key or P256 JWK |\n| --signature-type | | secp256k1 (default) or webauthn |\n\n### Send ETH\n```bash\nbun run scripts/send-eth.ts\n```\n\n| Argument | Environment Variable | Description |\n| --- | --- | --- |\n| --account | | The account of the keystore wallet to send from |\n| --owner-index | | The index of the owner (default: 0) |\n| --initial-config-data | | The initial config data needed to deploy the wallet |\n| --private-key | PRIVATE_KEY | secp256k1 private key or P256 JWK |\n| --to | | The address to send to |\n| --signature-type | | secp256k1 (default) or webauthn |\n\nMake 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`.\n\n\n### Change Owner\n```bash\nbun run scripts/change-owner.ts\n```\n\n| Argument | Environment Variable | Description |\n| --- | --- | --- |\n| --account | | The account of the keystore wallet |\n| --owner-index | | The index of the owner (default: 0) |\n| --initial-config-data | | The initial config data needed to deploy the wallet |\n| --private-key | PRIVATE_KEY | Current private key of the owner |\n| --config-data | | Current config data for the keystore wallet (hex string) |\n| --owner-bytes | | The owner bytes to change in the keystore wallet |\n| --signature-type | | secp256k1 (default) or webauthn |\n| --remove | | Flag to remove the owner instead of adding (optional) |\n\n## Build Documentation\n\n```bash\nbun run docs:dev\nbun run docs:build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fkeyspace-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase%2Fkeyspace-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fkeyspace-client/lists"}