Validate Transaction

This method analyzes a transaction, checking to see if it will end up sending assets to a malicious address.

validateTransaction

POST https://api.harpie.io/v2/validateTransaction

Get insights on the safety of a transaction. Addresses with no relevant data default to a recommended action of "ALLOW."

Request Body

Name
Type
Description

apiKey*

String

Your API key. You can find this in your dashboard.

from*

String

The address that the transaction is originating from. This is the .from parameter of an Ethereum transaction.

to*

String

The address that the transaction is being sent to.

This is the .to parameter of an Ethereum transaction.

data*

String

The data being passed along with the transaction.

This is the .data parameter of an Ethereum transaction. If no data exists, use "0x" by default.

value*

Number

The value being sent along with the transaction.

This is the .value parameter of an Ethereum transaction

{
    summary: string,
    isDangerousOperation: boolean, // Returns `true` if the operation is a transfer or approval
    recommendedAction: "ALLOW" | "BLOCK",
    addressDetails: {
        name: string,
        isMaliciousAddress: boolean,
        isAssociatedWithProtocol: boolean,
        tags: {
            THEFT: boolean,
            CYBERCRIME: boolean,
            SANCTIONED: boolean,
            BOT: boolean,
            WASH_TRADER: boolean,
            MIXER: boolean,
            NO_DATA: boolean,
        }
    }
}

Example query:

Example response:

Last updated