You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+55-9Lines changed: 55 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Arweave JS
1
+
# Arweave JS
2
2
3
3
Arweave JS is the JavaScript/TypeScript SDK for interacting with the Arweave network and uploading data to the permaweb. It works in latest browsers and Node JS.
4
4
5
-
> **Notes:**
5
+
> **Notes:**
6
6
> 1. If you are planning to upload large batches of data transactions to the Arweave network, it is strongly advised that you use [@DHA-Team/ArBundles](https://github.com/DHA-Team/arbundles) instead of transactions with Arweave.js. You can read about bundles and their advantages on the [Arwiki](https://arwiki.wiki/#/en/bundles).
7
7
> 2. When working with NodeJS a minimum version of 18+ is required. Bun/Deno not currently working.
8
8
@@ -32,7 +32,7 @@ Arweave JS is the JavaScript/TypeScript SDK for interacting with the Arweave net
32
32
-[Get a transaction](#get-a-transaction)
33
33
-[Get transaction data](#get-transaction-data)
34
34
-[Decode tags from transactions](#decode-tags-from-transactions)
35
-
-[Blocks](#blocks)
35
+
-[Blocks](#blocks)
36
36
-[Get a block by indep_hash](#get-a-block-by-indep_hash)
Here you can generate a new wallet address and private key ([JWK](https://docs.arweave.org/developers/server/http-api#key-format)), don't expose private keys or make them public as anyone with the key can use the corresponding wallet.
// HTTP response codes (200 - server received the transaction, 4XX - invalid transaction, 5XX - error)
378
424
```
379
425
380
-
**N.B.**
426
+
**N.B.**
381
427
_This `200` response does not mean that the transaction has mined & confirmed, and that a txid can be used as if it's immutable.__It just means that a node has received your transaction.__See [Get a transaction status](#get-a-transaction-status) for more detail on how to correctly determine that your transaction has been mined & confirmed.__This also applies to the `uploader` method._
382
428
383
429
384
430
##### Chunked uploading advanced options
385
431
386
-
You can resume an upload from a saved uploader object, that you have persisted in storage some using
432
+
You can resume an upload from a saved uploader object, that you have persisted in storage some using
387
433
`JSON.stringify(uploader)` at any stage of the upload. To resume, parse it back into an object and pass it to `getUploader()` along with the transactions data:
388
434
389
435
```js
@@ -559,7 +605,7 @@ a list of zero to many transactions.
559
605
Gets block data for given independent hash (see page 63. of [yellow-paper](https://www.arweave.org/yellow-paper.pdf) for details).
Find your transation ids and tags by searching their metadata. GraphQL (GQL) provides flexible querying and allows you to search for transactions by tags, wallet address, block height, etc.
636
+
### GraphQL
637
+
Find your transation ids and tags by searching their metadata. GraphQL (GQL) provides flexible querying and allows you to search for transactions by tags, wallet address, block height, etc.
592
638
593
639
Please see the [GQL Guide](https://gql-guide.vercel.app/) for further details.
0 commit comments