Skip to content

Kolinplatform/waves-games

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@waves/waves-games npm version

Create and deliver game assets through Waves Platform

This library provides a hight level abstraction over NODE REST API and MATCHER REST API and enables game developers to do the following:

  • Create an item on blockchain with arbitrary metadata
  • Track an item among players (wallets)
  • Sell an item via Waves DEX
  • Buy an item via Waves DEX
  • List items assosiated with a particular game (address)
  • List items for sale by players or developers

Usage

async function howToCreateAnItem(creatorSeed) {

    const { Items } = require('@waves/waves-games')
    const { create } = Items(ChainId.Testnet)
   
    const items = Items(ChainId.Testnet)
    const request = create(100, true, { version: 1, main: { name: 'The sword of pain', img: 'img_url' }, misc: {} creatorSeed)
    const item = await request.execute()
   
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%