Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
[![Version](https://img.shields.io/npm/v/arca-gql?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/arca-gql)
arca-gql
- a fork of ar-gql to add functionalityA JavaScript/TypeScript package that makes interaction with the Arweave GraphQL endpoint simple and easy.
# npm
npm i arca-gql
# yarn
yarn add arca-gql
run(query, variables?)
The run
function receives as input a required GraphQL query (compatible with the Arweave GraphQL endpoint) and an optional object of GraphQL variables for the query.
The function returns the result of this query with the variables passed in, if any, returned by the Arweave GraphQL endpoint.
all(query, variables?)
Similar to the run
function, the all
function receives a query and optional variables.
The one key difference is that it returns all possible transactions returned from running this query. As the Arweave GraphQL endpoint is paginated, this returns all the data by traversing through the pages.
The query passed in must follow the outline shown below:
query($cursor: String) {
transactions(
# your query parameters
# standard template below
after: $cursor
first: 100
) {
pageInfo {
hasNextPage
}
edges {
cursor
node {
# what tx data you want to query for:
}
}
}
}
tx(id)
The tx
function recieves as an input a valid Arweave transaction id. The function will then return all metadata information about the transaction that the GraphQL endpoint supports.
fetchTxTag(id, name)
This function will fetch all tags for the supplied transaction. Then, if it finds a tag with the name provided, it will return the tag value. Else, it will return undefined
.
setEndpointUrl(GQL_URL)
Set the GQL endpoint. Defaults to https://arweave.net/graphql
.
FAQs
[![Version](https://img.shields.io/npm/v/arca-gql?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/arca-gql)
The npm package arca-gql receives a total of 1 weekly downloads. As such, arca-gql popularity was classified as not popular.
We found that arca-gql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.