
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
depay-blockchain-token
Advanced tools
JavaScript library providing basic functionalities to work with tokens.
yarn add depay-blockchain-token
or
npm install --save depay-blockchain-token
import { Token } from 'depay-blockchain-token';
let token = new Token({
blockchain: 'ethereum',
address: '0xa0bed124a09ac2bd941b10349d8d224fe3c955eb'
});
token.address // '0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb'
await token.decimals() // 18
await token.symbol() // 'DEPAY'
await token.name() // 'DePay'
await token.transferable() // true
import { Token } from 'depay-blockchain-token';
let token = new Token({
blockchain: 'ethereum',
address: '0xa0bed124a09ac2bd941b10349d8d224fe3c955eb'
});
Retrieves token decimals
await token.decimals() // 18
Retrieves token symbol
await token.symbol() // DEPAY
Retrieves token name
await token.name() // DePay
Checks if token is transferable:
await token.transferable() // true
Provides the BigNumber amount for a given token (based on the tokens decimals) based on a humand readable amount:
Token.BigNumber({
amount: 1,
blockchain: 'ethereum',
address: '0xa0bed124a09ac2bd941b10349d8d224fe3c955eb'
}) // BigNumber '1000000000000000000'
depay-blockchain-token
exports standard token apis, like ERC20
, BEP20
etc.:
import { ERC20 } from 'depay-blockchain-token'
yarn install
yarn dev
npm publish
FAQs
JavaScript library providing basic functionalities to work with tokens.
The npm package depay-blockchain-token receives a total of 24 weekly downloads. As such, depay-blockchain-token popularity was classified as not popular.
We found that depay-blockchain-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.