@witnium/witniumchain 0.28.2 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.mts +5181 -1452
- package/dist/index.d.ts +5181 -1452
- package/dist/index.js +9 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,8 +100,8 @@ const client = new WitniumchainClient({
|
|
|
100
100
|
await client.proposeWitnessV5('0xabc', { ... });
|
|
101
101
|
|
|
102
102
|
// Reads of on-chain state → chain-api (chainBaseUrl)
|
|
103
|
-
const witness = await client.getWitnessV5('0xabc', witnessId);
|
|
104
|
-
const
|
|
103
|
+
const witness = await client.getWitnessV5('0xabc', witnessId); // public
|
|
104
|
+
const page = await client.listWitnessesV5('0xabc'); // the registry owner's (accessToken)
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
If you call a chain-api method without `chainBaseUrl` configured, the SDK
|