Skip to content

ArweaveKit v1.3.0

Choose a tag to compare

@kranthicodes kranthicodes released this 25 Jul 16:23
· 133 commits to main since this release
43ef1b7

Release summary

This release adds support to query GraphQL endpoint with the help of newly introduced methods queryGQL, queryTransactionsGQL, queryAllTransactionsGQL.

  • queryGQL will take in a valid Arweave GraphQL query with supported filters and return a raw GQL response.
  • queryTransactionsGQL will take in a valid Arweave GraphQL query in a suggested format so that consumer can utilize cursor based pagination support provided by this method.
  • queryAllTransactionsGQL will take in a valid Areave GraphQL query in a suggested format and iteratively fetches all transactions then return it to the consumer.

These methods pre-validates user's supplied query by parsing it into AST and further using validate method from graphql package. With this validation, we can make sure to catch silly mistakes or invalid query that is not as per schema.