epd-autopr
v0.0.2
Published
AutoPullRequest to Metamask/eth-phishing-detect
Downloads
3
Readme
EPD-AutoPR
AutoPullRequest Data for MetaMask/eth-phishing-detect
This is based on previous work by MrLuit in esdb-cli
To install:
npm i epd-autopr
To use:
const pr = require('./index.js')
const token = require('./token.json')
var input = {
"url": "https://www.meytherwallet.co/",
"description": "Added due to automated detection.",
"category": "Phishing",
"subcategory": "MyEtherWallet",
"addresses": [
'0x0000000000000000000000000000000000000000'
],
"urlscanuuid": '9c2ff47f-d080-461a-a19a-577a050b7b35'
}
var start = async () => {
output = pr(token.token, input)
if( output.statuscode === 0 ) {
console.log('Status: ' + output.statuscode)
console.log(output.message); }
else if( output.statuscode === 1 ) {
console.log('Status: ' + output.statuscode)
console.log(output.message);
}
}
start()
Example token.json:
{
"token":"github-access-token",
"urlscan-api-key": "urlscan-api-key"
}
Example input:
// Input Data: url field is required. Other fields are not.
{
"url": "https://www.myaetherwalet.com/",
"description": "Added due to automated detection.",
"category": "Phishing",
"subcategory": "MyEtherWallet",
"addresses": [
'0x0000000000000000000000000000000000000000'
],
"urlscanuuid": '259507d0-8136-4db3-ad3e-7723eee69217'
}