BlockaidApi

class BlockaidApi(host: String, apiKey: String, requests: PortalRequests)

API class for Blockaid security scanning functionality.

This class handles all Blockaid-related API calls including scanning EVM transactions, Solana transactions, addresses, tokens, and URLs for security risks.

Parameters

host

The base URL of the API server.

apiKey

The API key used for authentication.

requests

An instance of PortalRequests to handle HTTP requests.

Constructors

Link copied to clipboard
constructor(host: String, apiKey: String, requests: PortalRequests)

Functions

Link copied to clipboard

Scans an address for security risks.

Link copied to clipboard

Scans an EVM transaction for security risks.

Link copied to clipboard

Scans a Solana transaction for security risks.

Link copied to clipboard

Scans tokens for security risks.

Link copied to clipboard

Scans a URL for phishing or malicious content.