@ar.io/sdk 3.14.0-alpha.8 → 3.14.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 CHANGED
@@ -187,7 +187,7 @@ const ario = ARIO.mainnet(); // or ARIO.init()
187
187
  ```typescript
188
188
  import { ARIO } from '@ar.io/sdk';
189
189
 
190
- const testnet = ARIO.testnet(); // or ARIO.mainnet({ processId: ARIO_TESTNET_PROCESS_ID })
190
+ const testnet = ARIO.testnet(); // or ARIO.init({ processId: ARIO_TESTNET_PROCESS_ID })
191
191
  ```
192
192
 
193
193
  #### Faucet
@@ -274,13 +274,13 @@ Factory function to that creates a read-only or writeable client. By providing a
274
274
 
275
275
  ```typescript
276
276
  // read-only client
277
- const ario = ARIO.mainnet();
277
+ const ario = ARIO.init();
278
278
 
279
279
  // read-write client for browser environments
280
- const ario = ARIO.mainnet({ signer: new ArConnectSigner(window.arweaveWallet, Arweave.init({}))});
280
+ const ario = ARIO.init({ signer: new ArConnectSigner(window.arweaveWallet, Arweave.init({}))});
281
281
 
282
282
  // read-write client for node environments
283
- const ario = ARIO.mainnet({ signer: new ArweaveSigner(JWK) });
283
+ const ario = ARIO.init({ signer: new ArweaveSigner(JWK) });
284
284
 
285
285
  ```
286
286
 
@@ -298,8 +298,8 @@ const info = await ario.getInfo();
298
298
 
299
299
  ```json
300
300
  {
301
- "Name": "Testnet ARIO",
302
- "Ticker": "tARIO",
301
+ "Name": "ARIO",
302
+ "Ticker": "ARIO",
303
303
  "Owner": "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ",
304
304
  "Denomination": 6,
305
305
  "Handlers": ["_eval", "_default_"], // full list of handlers, useful for debugging