Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.45 KB

ar-gql.md

File metadata and controls

45 lines (27 loc) · 1.45 KB

Proposal Name: arGQL

Version

Summary:

A JavaScript/TypeScript package that makes interaction with the Arweave GraphQL endpoint simple and easy.

Motivation:

With the launch of the Arweave GQL Endpoint, there doesn't exist a simple way to interact with it in a JS/TS project.

I myself have implemented functions, but it would be extremely nice to have a generic function I can just import.

Also, querying for infinite responses and pagination isn't straight forward, this library would take care of that.

Specification:

  • run() - Query the Arweave GQL endpoint.
    • Takes in a GQL query and optional variables.
  • all() - Retrieve all results for a specific GQL query.
    • Parses all pages returned.
  • tx() - Retrieve all information about a specific Arweave transaction.
    • Significantly faster than arweave.transactions.get()
  • fetchTxTag() - Retrieve the value of a specific Arweave transaction tag (if it exists).

Team:

John Letey (@johnletey):

Timeline:

~ 1 to 2 weeks

Grant Requested (DAI):

200 DAI (currently ~150 GBP)

Ethereum Address:

0x0f3F9D76D105E4F75171B3BA7f54094A4B2cc156