Socket
Socket
Sign inDemoInstall

@permaweb/asset-web-sdk

Package Overview
Dependencies
17
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @permaweb/asset-web-sdk

This SDK is for Atomic Assets in the browser.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 15 Apr 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc