Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nerds' Elrond Decoder

Npm package for decoding Elrond smart contract queries based on ABIs.

Installation

Using npm:

npm install -E @nerds.sh/elrond-decoder

Using yarn:

yarn add -E @nerds.sh/elrond-decoder

Example

const { decode } = require('@nerds.sh/elrond-decoder')

const input = {
	abi: {
		type: 'file',
		value: './raffle.abi.json',
	},
	contract: 'erd1qqqqqqqqqqqqqpgqvul86784zrj47hkn0y0pd4pzn8qyw0z6c32q558mf5',
	environment: 'devnet',
	func: 'getWinners',
    // optional preserveTypes flag to preserve type information
}

decode(input)
    .then(console.log)
    .catch(console.error)   

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages