@permaweb/asset-web-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Asset-Web-SDK

This SDK is for Atomic Assets in the browser.

Install

npm install @permaweb/asset-web-sdk

Usage

init

import Arweave from 'arweave'
import { WarpFactory } from 'warp-contracts'
import SDK from '@permaweb/asset-web-sdk'

const arweave = Arweave.init({ host: 'arweave.net', port: 443, protocol: 'https' })
const sdk = SDK.init({ arweave, warp: WarpFactory.forMainnet() })

getAsset

const result = await sdk.getAsset('vCU8cXnxkkMupiACruf9ih2M4k_CWIEvGsozbY9jlzg')
console.log('result', result)

Developer Information

test

yarn test

format

yarn fmt

lint

yarn lint

coverage

yarn coverage

Readme

Keywords

none

Package Sidebar

Install

npm i @permaweb/asset-web-sdk

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

601 kB

Total Files

11

Last publish

Collaborators

  • permaweb