An open API service indexing awesome lists of open source software.

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

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
```