@arkiv-network/sdk 0.6.5-dev.10 → 0.6.5-dev.12
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 +8 -7
- package/dist/chains/index.cjs +2 -1
- package/dist/chains/index.d.cts +44 -1
- package/dist/chains/index.d.cts.map +1 -1
- package/dist/chains/index.d.ts +85 -42
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +2 -2
- package/dist/{chains-CU-aTH5I.js → chains-DX8yNhGT.js} +26 -2
- package/dist/chains-DX8yNhGT.js.map +1 -0
- package/dist/{chains-K_cHr4a4.cjs → chains-DycNIf_C.cjs} +30 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chains/braga.ts +26 -0
- package/src/chains/index.ts +1 -0
- package/src/clients/createPublicClient.ts +3 -3
- package/src/clients/createWalletClient.ts +3 -3
- package/src/clients/decorators/arkivPublic.ts +12 -12
- package/src/clients/decorators/arkivWallet.ts +10 -10
- package/src/utils/chains.test.ts +11 -1
- package/dist/chains-CU-aTH5I.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,10 +16,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { createPublicClient, http } from 'arkiv'
|
|
19
|
-
* import {
|
|
19
|
+
* import { braga } from 'arkiv/chains'
|
|
20
20
|
*
|
|
21
21
|
* const client = createPublicClient({
|
|
22
|
-
* chain:
|
|
22
|
+
* chain: braga,
|
|
23
23
|
* transport: http(),
|
|
24
24
|
* })
|
|
25
25
|
* const entity = await client.getEntity("0x123")
|
|
@@ -39,10 +39,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* import { createPublicClient, http } from 'arkiv'
|
|
42
|
-
* import {
|
|
42
|
+
* import { braga } from 'arkiv/chains'
|
|
43
43
|
*
|
|
44
44
|
* const client = createPublicClient({
|
|
45
|
-
* chain:
|
|
45
|
+
* chain: braga,
|
|
46
46
|
* transport: http(),
|
|
47
47
|
* })
|
|
48
48
|
* const query = client.buildQuery()
|
|
@@ -59,10 +59,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* import { createPublicClient, http } from 'arkiv'
|
|
62
|
-
* import {
|
|
62
|
+
* import { braga } from 'arkiv/chains'
|
|
63
63
|
*
|
|
64
64
|
* const client = createPublicClient({
|
|
65
|
-
* chain:
|
|
65
|
+
* chain: braga,
|
|
66
66
|
* transport: http(),
|
|
67
67
|
* })
|
|
68
68
|
* const queryResult = client.query('key = value && $owner = 0x123')
|
|
@@ -87,10 +87,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
89
89
|
* import { createPublicClient, http } from 'arkiv'
|
|
90
|
-
* import {
|
|
90
|
+
* import { braga } from 'arkiv/chains'
|
|
91
91
|
*
|
|
92
92
|
* const client = createPublicClient({
|
|
93
|
-
* chain:
|
|
93
|
+
* chain: braga,
|
|
94
94
|
* transport: http(),
|
|
95
95
|
* })
|
|
96
96
|
* const entityCount = await client.getEntityCount()
|
|
@@ -103,10 +103,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* import { createPublicClient, http } from 'arkiv'
|
|
106
|
-
* import {
|
|
106
|
+
* import { braga } from 'arkiv/chains'
|
|
107
107
|
*
|
|
108
108
|
* const client = createPublicClient({
|
|
109
|
-
* chain:
|
|
109
|
+
* chain: braga,
|
|
110
110
|
* transport: http(),
|
|
111
111
|
* })
|
|
112
112
|
* const blockTiming = await client.getBlockTiming()
|
|
@@ -130,10 +130,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* import { createPublicClient, http } from 'arkiv'
|
|
133
|
-
* import {
|
|
133
|
+
* import { braga } from 'arkiv/chains'
|
|
134
134
|
*
|
|
135
135
|
* const client = createPublicClient({
|
|
136
|
-
* chain:
|
|
136
|
+
* chain: braga,
|
|
137
137
|
* transport: http(),
|
|
138
138
|
* })
|
|
139
139
|
* const unsubscribe = await client.subscribeEntityEvents({
|
|
@@ -164,17 +164,17 @@ type PublicArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
164
164
|
*
|
|
165
165
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
166
166
|
*
|
|
167
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
167
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
168
168
|
*
|
|
169
169
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
170
170
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* import { createPublicClient, http } from 'arkiv'
|
|
174
|
-
* import {
|
|
174
|
+
* import { braga } from 'arkiv/chains'
|
|
175
175
|
*
|
|
176
176
|
* const client = createPublicClient({
|
|
177
|
-
* chain:
|
|
177
|
+
* chain: braga,
|
|
178
178
|
* transport: http(),
|
|
179
179
|
* })
|
|
180
180
|
*/
|
|
@@ -194,10 +194,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
196
|
* import { createPublicClient, http } from 'arkiv'
|
|
197
|
-
* import {
|
|
197
|
+
* import { braga } from 'arkiv/chains'
|
|
198
198
|
*
|
|
199
199
|
* const client = createPublicClient({
|
|
200
|
-
* chain:
|
|
200
|
+
* chain: braga,
|
|
201
201
|
* transport: http(),
|
|
202
202
|
* })
|
|
203
203
|
* const { entityKey, txHash } = await client.createEntity({
|
|
@@ -225,10 +225,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
225
225
|
*
|
|
226
226
|
* @example
|
|
227
227
|
* import { createWalletClient, http } from 'arkiv'
|
|
228
|
-
* import {
|
|
228
|
+
* import { braga } from 'arkiv/chains'
|
|
229
229
|
*
|
|
230
230
|
* const client = createWalletClient({
|
|
231
|
-
* chain:
|
|
231
|
+
* chain: braga,
|
|
232
232
|
* transport: http(),
|
|
233
233
|
* })
|
|
234
234
|
*/
|
|
@@ -245,10 +245,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
245
245
|
*
|
|
246
246
|
* @example
|
|
247
247
|
* import { createWalletClient, http } from 'arkiv'
|
|
248
|
-
* import {
|
|
248
|
+
* import { braga } from 'arkiv/chains'
|
|
249
249
|
*
|
|
250
250
|
* const client = createWalletClient({
|
|
251
|
-
* chain:
|
|
251
|
+
* chain: braga,
|
|
252
252
|
* transport: http(),
|
|
253
253
|
* })
|
|
254
254
|
* const { entityKey, txHash } = await client.deleteEntity({ entityKey: "0x123" })
|
|
@@ -272,10 +272,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
274
|
* import { createWalletClient, http } from 'arkiv'
|
|
275
|
-
* import {
|
|
275
|
+
* import { braga } from 'arkiv/chains'
|
|
276
276
|
*
|
|
277
277
|
* const client = createWalletClient({
|
|
278
|
-
* chain:
|
|
278
|
+
* chain: braga,
|
|
279
279
|
* transport: http(),
|
|
280
280
|
* })
|
|
281
281
|
* const { entityKey, txHash } = await client.extendEntity("0x123", {
|
|
@@ -312,10 +312,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
312
312
|
*
|
|
313
313
|
* @example
|
|
314
314
|
* import { createWalletClient, http } from 'arkiv'
|
|
315
|
-
* import {
|
|
315
|
+
* import { braga } from 'arkiv/chains'
|
|
316
316
|
*
|
|
317
317
|
* const client = createWalletClient({
|
|
318
|
-
* chain:
|
|
318
|
+
* chain: braga,
|
|
319
319
|
* transport: http(),
|
|
320
320
|
* })
|
|
321
321
|
* const { entityKey, txHash } = await client.mutateEntities({
|
|
@@ -355,17 +355,17 @@ type WalletArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
355
355
|
*
|
|
356
356
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
357
357
|
*
|
|
358
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
358
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
359
359
|
*
|
|
360
360
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
361
361
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
362
362
|
*
|
|
363
363
|
* @example
|
|
364
364
|
* import { createPublicClient, http } from 'arkiv'
|
|
365
|
-
* import {
|
|
365
|
+
* import { braga } from 'arkiv/chains'
|
|
366
366
|
*
|
|
367
367
|
* const client = createPublicClient({
|
|
368
|
-
* chain:
|
|
368
|
+
* chain: braga,
|
|
369
369
|
* transport: http(),
|
|
370
370
|
* })
|
|
371
371
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { createPublicClient, http } from 'arkiv'
|
|
19
|
-
* import {
|
|
19
|
+
* import { braga } from 'arkiv/chains'
|
|
20
20
|
*
|
|
21
21
|
* const client = createPublicClient({
|
|
22
|
-
* chain:
|
|
22
|
+
* chain: braga,
|
|
23
23
|
* transport: http(),
|
|
24
24
|
* })
|
|
25
25
|
* const entity = await client.getEntity("0x123")
|
|
@@ -39,10 +39,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* import { createPublicClient, http } from 'arkiv'
|
|
42
|
-
* import {
|
|
42
|
+
* import { braga } from 'arkiv/chains'
|
|
43
43
|
*
|
|
44
44
|
* const client = createPublicClient({
|
|
45
|
-
* chain:
|
|
45
|
+
* chain: braga,
|
|
46
46
|
* transport: http(),
|
|
47
47
|
* })
|
|
48
48
|
* const query = client.buildQuery()
|
|
@@ -59,10 +59,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* import { createPublicClient, http } from 'arkiv'
|
|
62
|
-
* import {
|
|
62
|
+
* import { braga } from 'arkiv/chains'
|
|
63
63
|
*
|
|
64
64
|
* const client = createPublicClient({
|
|
65
|
-
* chain:
|
|
65
|
+
* chain: braga,
|
|
66
66
|
* transport: http(),
|
|
67
67
|
* })
|
|
68
68
|
* const queryResult = client.query('key = value && $owner = 0x123')
|
|
@@ -87,10 +87,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
89
89
|
* import { createPublicClient, http } from 'arkiv'
|
|
90
|
-
* import {
|
|
90
|
+
* import { braga } from 'arkiv/chains'
|
|
91
91
|
*
|
|
92
92
|
* const client = createPublicClient({
|
|
93
|
-
* chain:
|
|
93
|
+
* chain: braga,
|
|
94
94
|
* transport: http(),
|
|
95
95
|
* })
|
|
96
96
|
* const entityCount = await client.getEntityCount()
|
|
@@ -103,10 +103,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* import { createPublicClient, http } from 'arkiv'
|
|
106
|
-
* import {
|
|
106
|
+
* import { braga } from 'arkiv/chains'
|
|
107
107
|
*
|
|
108
108
|
* const client = createPublicClient({
|
|
109
|
-
* chain:
|
|
109
|
+
* chain: braga,
|
|
110
110
|
* transport: http(),
|
|
111
111
|
* })
|
|
112
112
|
* const blockTiming = await client.getBlockTiming()
|
|
@@ -130,10 +130,10 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
132
|
* import { createPublicClient, http } from 'arkiv'
|
|
133
|
-
* import {
|
|
133
|
+
* import { braga } from 'arkiv/chains'
|
|
134
134
|
*
|
|
135
135
|
* const client = createPublicClient({
|
|
136
|
-
* chain:
|
|
136
|
+
* chain: braga,
|
|
137
137
|
* transport: http(),
|
|
138
138
|
* })
|
|
139
139
|
* const unsubscribe = await client.subscribeEntityEvents({
|
|
@@ -164,17 +164,17 @@ type PublicArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
164
164
|
*
|
|
165
165
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
166
166
|
*
|
|
167
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
167
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
168
168
|
*
|
|
169
169
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
170
170
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* import { createPublicClient, http } from 'arkiv'
|
|
174
|
-
* import {
|
|
174
|
+
* import { braga } from 'arkiv/chains'
|
|
175
175
|
*
|
|
176
176
|
* const client = createPublicClient({
|
|
177
|
-
* chain:
|
|
177
|
+
* chain: braga,
|
|
178
178
|
* transport: http(),
|
|
179
179
|
* })
|
|
180
180
|
*/
|
|
@@ -194,10 +194,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
196
|
* import { createPublicClient, http } from 'arkiv'
|
|
197
|
-
* import {
|
|
197
|
+
* import { braga } from 'arkiv/chains'
|
|
198
198
|
*
|
|
199
199
|
* const client = createPublicClient({
|
|
200
|
-
* chain:
|
|
200
|
+
* chain: braga,
|
|
201
201
|
* transport: http(),
|
|
202
202
|
* })
|
|
203
203
|
* const { entityKey, txHash } = await client.createEntity({
|
|
@@ -225,10 +225,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
225
225
|
*
|
|
226
226
|
* @example
|
|
227
227
|
* import { createWalletClient, http } from 'arkiv'
|
|
228
|
-
* import {
|
|
228
|
+
* import { braga } from 'arkiv/chains'
|
|
229
229
|
*
|
|
230
230
|
* const client = createWalletClient({
|
|
231
|
-
* chain:
|
|
231
|
+
* chain: braga,
|
|
232
232
|
* transport: http(),
|
|
233
233
|
* })
|
|
234
234
|
*/
|
|
@@ -245,10 +245,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
245
245
|
*
|
|
246
246
|
* @example
|
|
247
247
|
* import { createWalletClient, http } from 'arkiv'
|
|
248
|
-
* import {
|
|
248
|
+
* import { braga } from 'arkiv/chains'
|
|
249
249
|
*
|
|
250
250
|
* const client = createWalletClient({
|
|
251
|
-
* chain:
|
|
251
|
+
* chain: braga,
|
|
252
252
|
* transport: http(),
|
|
253
253
|
* })
|
|
254
254
|
* const { entityKey, txHash } = await client.deleteEntity({ entityKey: "0x123" })
|
|
@@ -272,10 +272,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
274
|
* import { createWalletClient, http } from 'arkiv'
|
|
275
|
-
* import {
|
|
275
|
+
* import { braga } from 'arkiv/chains'
|
|
276
276
|
*
|
|
277
277
|
* const client = createWalletClient({
|
|
278
|
-
* chain:
|
|
278
|
+
* chain: braga,
|
|
279
279
|
* transport: http(),
|
|
280
280
|
* })
|
|
281
281
|
* const { entityKey, txHash } = await client.extendEntity("0x123", {
|
|
@@ -312,10 +312,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
|
|
|
312
312
|
*
|
|
313
313
|
* @example
|
|
314
314
|
* import { createWalletClient, http } from 'arkiv'
|
|
315
|
-
* import {
|
|
315
|
+
* import { braga } from 'arkiv/chains'
|
|
316
316
|
*
|
|
317
317
|
* const client = createWalletClient({
|
|
318
|
-
* chain:
|
|
318
|
+
* chain: braga,
|
|
319
319
|
* transport: http(),
|
|
320
320
|
* })
|
|
321
321
|
* const { entityKey, txHash } = await client.mutateEntities({
|
|
@@ -355,17 +355,17 @@ type WalletArkivClient<transport extends Transport = Transport, chain extends Ch
|
|
|
355
355
|
*
|
|
356
356
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
357
357
|
*
|
|
358
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
358
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
359
359
|
*
|
|
360
360
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
361
361
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
362
362
|
*
|
|
363
363
|
* @example
|
|
364
364
|
* import { createPublicClient, http } from 'arkiv'
|
|
365
|
-
* import {
|
|
365
|
+
* import { braga } from 'arkiv/chains'
|
|
366
366
|
*
|
|
367
367
|
* const client = createPublicClient({
|
|
368
|
-
* chain:
|
|
368
|
+
* chain: braga,
|
|
369
369
|
* transport: http(),
|
|
370
370
|
* })
|
|
371
371
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as chains_exports } from "./chains-
|
|
1
|
+
import { t as chains_exports } from "./chains-DX8yNhGT.js";
|
|
2
2
|
import { a as entityFromRpcResult, c as NoEntityFoundError, l as NoMoreResultsError, o as EntityMutationError, s as NoCursorOrLimitError, t as QueryBuilder, u as getLogger } from "./queryBuilder-DonAg1aq.js";
|
|
3
3
|
import { i as BLOCK_TIME, n as stringToPayload, r as ARKIV_ADDRESS, t as jsonToPayload } from "./payload-DKBYYjeA.js";
|
|
4
4
|
import "./types-H-TSmRpm.js";
|
|
@@ -209,17 +209,17 @@ function publicArkivActions(client) {
|
|
|
209
209
|
*
|
|
210
210
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
211
211
|
*
|
|
212
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
212
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
213
213
|
*
|
|
214
214
|
* @param parameters - Configuration object for the public client (chain, transport, etc.)
|
|
215
215
|
* @returns A Arkiv Public Client. {@link PublicArkivClient}
|
|
216
216
|
*
|
|
217
217
|
* @example
|
|
218
218
|
* import { createPublicClient, http } from 'arkiv'
|
|
219
|
-
* import {
|
|
219
|
+
* import { braga } from 'arkiv/chains'
|
|
220
220
|
*
|
|
221
221
|
* const client = createPublicClient({
|
|
222
|
-
* chain:
|
|
222
|
+
* chain: braga,
|
|
223
223
|
* transport: http(),
|
|
224
224
|
* })
|
|
225
225
|
*/
|
|
@@ -496,17 +496,17 @@ function walletArkivActions(client) {
|
|
|
496
496
|
*
|
|
497
497
|
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
|
|
498
498
|
*
|
|
499
|
-
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [
|
|
499
|
+
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
|
|
500
500
|
*
|
|
501
501
|
* @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
|
|
502
502
|
* @returns A Arkiv Wallet Client. {@link WalletArkivClient}
|
|
503
503
|
*
|
|
504
504
|
* @example
|
|
505
505
|
* import { createPublicClient, http } from 'arkiv'
|
|
506
|
-
* import {
|
|
506
|
+
* import { braga } from 'arkiv/chains'
|
|
507
507
|
*
|
|
508
508
|
* const client = createPublicClient({
|
|
509
|
-
* chain:
|
|
509
|
+
* chain: braga,
|
|
510
510
|
* transport: http(),
|
|
511
511
|
* })
|
|
512
512
|
*/
|