Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ethereum-sanction-check
Advanced tools
This node module help to check if a account is sanction. Currently only chainalysis sanction api
is support. Here you can find more Information: https://public.chainalysis.com/docs/index.html#create-an-api-key
ENS Names compatible
async function main( { tests } ) {
const check = new SanctionCheck( {
'providerUrl': process.env.HTTP_NODE_PROVIDER,
'chainalysisApiKey': process.env.CHAINALYSIS_API_KEY
} )
await check.start( { 'tests': tests } )
check.print()
return s.checks
}
main( { 'tests': 'vitalik.eth' } )
.then( checks => console.log( checks ) )
.catch( e => console.log( e ) )
LISTS with validation check
async function main( { tests } ) {
const check = new SanctionCheck( {
'providerUrl': process.env.HTTP_NODE_PROVIDER,
'chainalysisApiKey': process.env.CHAINALYSIS_API_KEY
} )
await check.start( { 'tests': tests } )
check.print()
return s.checks
}
const tests = [
'0x0000000000000000000000000000000000000001',
'0x0000000000000000000000000000000000000002',
'0x0000000000000000000000000000000000000003',
null,
1,
'invalid'
]
main( { 'tests': tests } )
.then( checks => console.log( checks ) )
.catch( e => console.log( e ) )
const SanctionCheck = require( 'ethereum-sanction-check' )
const check = new SanctionCheck( {
'chainalysisApiKey': process.env.CHAINALYSIS_API_KEY
} )
const tests = [ '0x0000000000000000000000000000000000000000' ]
check.start( { 'tests': tests } )
.then( s => { s.print() } )
.catch( err => console.log( err ) )
npm i ethereum-sanction-check
constructor()
const SanctionCheck = require( 'ethereum-sanction-check' )
const check = new SanctionCheck( {
'providerUrl': null,
'chainalysisApiKey': process.env.CHAINALYSIS_API_KEY
'sleep': 1,
'provider': null
} )
Name | Type | Required | Default | Description |
---|---|---|---|---|
providerUrl | String | No | null | Is only used for ENS Domainnames: LINK |
chainalysisApiKey | String | Yes | null | You can find more Information here: LINK |
sleep | String | No | 0 | Delay between queries in milliseconds |
provider | Etherjs Provider Object | No | null | By default it will created for you. You can also pass the object y yourself: LINK |
.start( { tests: [] } )
Name | Type | Required | Default | Description |
---|---|---|---|---|
tests | String or Array | Yes | Insert your addresses here as Array or a single string |
.print()
Console log all results.
.checks
Return results as array
Bug reports and pull requests are welcome on GitHub at https://github.com/a6b8/ethereum-sanction-check-for-nodejs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The module is available as open source under the terms of the MIT License.
Everyone interacting in the Statosio project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Please ⭐️ star this Project, every ⭐️ star makes us very happy!
FAQs
Unknown package
The npm package ethereum-sanction-check receives a total of 0 weekly downloads. As such, ethereum-sanction-check popularity was classified as not popular.
We found that ethereum-sanction-check 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.