-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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