Skip to content

Add function to get raw transaction data (the core image, video, file, etc) #89

@ropats16

Description

@ropats16

Description

Create a getData function that returns the core data associated with a transaction id for mainnet, bundled and arlocal transactions.

Steps for usage

Here's how the function will be used:

import { getData } from 'arweavekit/transaction'

const data = await getData({
   transactionId: string,
   environment: string,
});

Compatible Environments

  • NodeJS
  • Browser

Additional Context

  • The arweave-js implementation can be used for some reference, however, this does not support bundled transaction ids (the ArweaveKit' getData function should fetch the core data for bundled transaction ids as well).
  • Make sure to update types and tests accordingly.
  • The getTransaction function will be deprecated after this implementation as it returns the transaction metadata associated with a transaction id (docs for function) however this can be fetched with our GraphQL utilities as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions