import os
from mwadb import MWA
MWA.load(os.path.abspath("malicious_wallet_address.dat"))
result = MWA.is_malicious("ETH", "0x957cD4Ff9b3894FC78b5134A8DC72b032fFbC464")
print(result)
"""
If the address is normal, the output is:{'malicious': False}
If the address is malicious, the output is:{'malicious': True, 'category': 'Phishing', 'addTime': '2018-03-28', 'updateTime': '2018-04-09'}
category:Phishing, Ransom, Stealing
"""
print(MWA.get_version())
print(MWA.get_statistics())
"""
The output is:
Total:    1024
Phishing: 800
Ransom:   220
Stealing: 4
"""
              
                 
                
                        var MWA = require('./mwadb.js');
MWA.load("./malicious_wallet_address.dat");
var result = MWA.is_malicious("ETH", "0x957cD4Ff9b3894FC78b5134A8DC72b032fFbC464");
console.log(result);
console.log(MWA.get_version());
console.log(MWA.get_statistics());
              
                 
                
                        package main
import "github.com/slowmist/mwadb-go"
import "fmt"
func main(){
    MWA, err := mwadb.Load("/path/to/malicious_wallet_address.dat")
    if err == nil {
        result = MWA.Is_malicious("ETH", "0x957cD4Ff9b3894FC78b5134A8DC72b032fFbC464")
        fmt.Println(strings(result))
        fmt.Println(MWA.Get_version()) 
        fmt.Println(MWA.Get_statistics())
    }
}
              
                 
                
                        import com.slowmist.mwadb.*;
import java.io.IOException;
public class Main {
    public static void main(String[] args) {
        try {
            Mwadb mwadb = new Mwadb("/path/to/malicious_wallet_address.dat");
            result = mwadb.is_malicious("ETH", "0x957cD4Ff9b3894FC78b5134A8DC72b032fFbC464");
            System.out.println(result.toString());
            System.out.println(mwadb.get_version());
            System.out.println(mwadb.get_statistics());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}