Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.