1.0.19 • Published 2 years ago
sol-token-utils v1.0.19
Following you will find a solana wrapper for token interactions and trasaction decoding onchain, mostly here will be stuff that I needed to use and was integrated here due to necessity and usage.
👷 Install
yarn add sol-token-utils
or
npm i sol-token-utils
Decoding burn transactions
import SolanaTokenutils from 'sol-token-utils'
import { config } from 'dotenv'
config()
const utils = new SolanaTokenutils({
commitment: "confirmed",
httpEndpoint: process.env.HTTP
})
const tx = "3nbN4CQJ77i6V9arVX9TtrXiKLQcnLZ4eauWMjryoedwZXYc89HepqpZpJUmkzsS8CZTMbnNncWDZZVtWF84tgqf"
utils.getBurnTransactionInfo(tx, { fetchNewBalance: true }).then(console.log)
// {
// amount: '2235067977499',
// mint: 'ED7G2vS2sj1FZmi8dn65vzKXSYkTZ1DkzovuuRgCzKyX',
// account: 'FXBxvAnM8NnePk3SGpfUhLzQXUWBydrsboFY5uWqNrbf',
// authority: 'DmAeQv9E1oyroWGm9KJFcVEsjUxdujEoPwoYh8bewPHE',
// newBalance: 0
// }1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago