Transaction AML

What is this request?

You can see more detailed transactions with this service.

What can I do with this service?

With this service, you have a more detailed transaction and transaction aml information. You can see what was done in the transaction and with which contract this transaction was run.

Tutorial

var axios = require('axios');

axios.get('https://api.getdefy.co/v2/security/tx_detail', {
    params: {
      hash: '0xaef1b250f3c09dde83c5c040c4b0fa2363db5b35980e74cd72560d509b365299',
      apikey: 'API_KEY',
    },
  })
  .then(function (response) {
    console.log(JSON.stringify(response.data));
  })
  .catch(function (error) {
    console.log(error);
  });

Options

  • hash (required): A transaction hash (i.e. 0x1a2b3x...).

  • apikey (required): API key for requests.

Request Example

GET https://api.getdefy.co/v2/security/tx_detail

Query Parameters

Name
Type
Description

apikey*

String

API Key

hash*

String

Transaction Hash

{
    "code": 0,
    "message": "OK",
    "data": {
        "from": "0x1d0d2d8c85441050abc9eb654399fa198fbd5722",
        "to": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
        "status": "Success",
        "timestamp": 1696506036,
        "network": "polygon",
        "hash": "0xd2aae7196455c600ca8759a37e10d917ab89e96d5ba5514161828e6d31b4973a",
        "value": 0,
        "transfers": [
            {
                "from": "0x1d0d2d8c85441050abc9eb654399fa198fbd5722",
                "to": "0x777f415324d56e1d54fa832902d8797db7a4c57c",
                "value": 0.01,
                "token_name": "USD Coin (PoS)",
                "token_symbol": "USDC"
            }
        ],
        "aml_data": {
            "tags": {
                "direct_blacklisted_accounts": true,
                "direct_gambling_accounts": true,
                "indirect_mixer": true,
                "indirect_blacklisted_accounts": true,
                "indirect_gambling_accounts": true
            },
            "score": 100,
            "threshold": {
                "low": 0,
                "modarate": 30,
                "high": 70
            }
        }
    }
}

Last updated