https://github.com/timoglastra/cheqd-sdk-issue
cheqd-sdk-issue
https://github.com/timoglastra/cheqd-sdk-issue
Last synced: 8 months ago
JSON representation
cheqd-sdk-issue
- Host: GitHub
- URL: https://github.com/timoglastra/cheqd-sdk-issue
- Owner: TimoGlastra
- Created: 2024-04-05T14:00:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-05T14:45:51.000Z (over 1 year ago)
- Last Synced: 2025-01-11T22:13:44.932Z (9 months ago)
- Language: TypeScript
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To testnet (fails)
```
pnpm install
pnpm ts-node index.ts
```## To local node with default account (succeeds)
> NOTE: resolving fails because the did doesn't exist, but writing succeeds
```
pnpm install
docker run --rm -d -p 26657:26657 ghcr.io/cheqd/cheqd-testnet:latest
CHEQD_RPC_URL=http://localhost:26657 CHEQD_SEED="sketch mountain erode window enact net enrich smoke claim kangaroo another visual write meat latin bacon pulp similar forum guilt father state erase bright" pnpm ts-node index.ts
```## To local node with new account (fails):
> NOTE: resolving fails because the did doesn't exist
> NOTE: adding the following resolutions to package.json, running pnpm install again, and then re-running the ts-node script (only the last one), will make it succeed, so it's something with the new version of the SDK:
> ```
> "resolutions": {
> "@cheqd/sdk": "~2.3.0",
> "@cheqd/ts-proto": "~2.2.0"
> }
> ``````
pnpm install
docker run --rm -d --name cheqd -p 26657:26657 ghcr.io/cheqd/cheqd-testnet:latest
docker exec cheqd /bin/sh -c '(echo "silk theme damp share lens select artefact orbit artwork weather mixture alarm remain oppose own wolf reduce melody cheap venture lady spy wise loud"; echo "12345678"; echo "12345678";) | cheqd-noded keys add extra1 --recover'
docker exec cheqd /bin/sh -c '(echo "sketch mountain erode window enact net enrich smoke claim kangaroo another visual write meat latin bacon pulp similar forum guilt father state erase bright"; echo "12345678"; echo "12345678";) | cheqd-noded keys add base --recover'
docker exec cheqd /bin/sh -c '(echo "12345678";) | cheqd-noded tx bank send cheqd1rnr5jrt4exl0samwj0yegv99jeskl0hsxmcz96 cheqd1yeahnxhfa583wwpm9xt452xzet4xsgsqacgjkr 10000000000000000ncheq --from base --gas auto --fees 100000000ncheq --chain-id cheqd -y'
CHEQD_RPC_URL=http://localhost:26657 CHEQD_SEED="silk theme damp share lens select artefact orbit artwork weather mixture alarm remain oppose own wolf reduce melody cheap venture lady spy wise loud" pnpm ts-node index.ts
```