@helium/blockchain-api 0.2.0 → 0.2.2
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 +4 -15
- package/dist/index.d.ts +2071 -1171
- package/dist/index.js +367 -405
- package/package.json +6 -14
package/README.md
CHANGED
|
@@ -64,7 +64,10 @@ const client = createClient({
|
|
|
64
64
|
All Zod schemas are exported for direct use:
|
|
65
65
|
|
|
66
66
|
```typescript
|
|
67
|
-
import {
|
|
67
|
+
import {
|
|
68
|
+
GetBalancesInputSchema,
|
|
69
|
+
TokenBalanceDataSchema,
|
|
70
|
+
} from "@helium/blockchain-api";
|
|
68
71
|
|
|
69
72
|
// Validate input
|
|
70
73
|
const input = GetBalancesInputSchema.parse({
|
|
@@ -111,20 +114,6 @@ const mockClient = createMockClient({
|
|
|
111
114
|
const result = await mockClient.tokens.getBalances({ walletAddress: "..." });
|
|
112
115
|
```
|
|
113
116
|
|
|
114
|
-
## OpenAPI Spec Generation
|
|
115
|
-
|
|
116
|
-
```typescript
|
|
117
|
-
import { generateOpenAPISpec } from "@helium/blockchain-api";
|
|
118
|
-
|
|
119
|
-
const spec = generateOpenAPISpec({
|
|
120
|
-
info: {
|
|
121
|
-
title: "Helium Blockchain API",
|
|
122
|
-
version: "1.0.0",
|
|
123
|
-
},
|
|
124
|
-
servers: [{ url: "https://api.helium.com" }],
|
|
125
|
-
});
|
|
126
|
-
```
|
|
127
|
-
|
|
128
117
|
## API Reference
|
|
129
118
|
|
|
130
119
|
### Routers
|