1.0.19 • Published 12 months 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
12 months ago
1.0.18
12 months ago
1.0.17
12 months ago
1.0.16
12 months ago
1.0.15
12 months ago
1.0.14
12 months ago
1.0.13
12 months ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago