Skip to content

nerds-sh/elrond-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published