Security API

by Covalent
15Supported chains 3Plans
Starting at $50.00

An industry-leading API that helps secure wallets by providing a list of all token and NFT contracts that can spend on a wallet's behalf. The API includes the allowance granted in approvals, value-at-risk and a risk assessment.

Commonly used to add revoke features in wallets and for onchain risk analysis.

A list of approvals is provided across all token contracts categorized by spenders for a wallet’s assets. If the spender account were to be hacked, the value-at-risk is the amount the wallet could stand to lose.

Note - by purchasing this add-on, you get access to ALL the other Covalent add-ons in the marketplace.

Getting Started

There are 3 primary developer tools for using the Security API:
 
1. Unified API - enterprise-grade endpoints to use with any programming language. Switch blockchains with one path parameter.

curl -X GET https://api.covalenthq.com/v1/eth-mainnet/nft/approvals/demo.eth/\? \
    -H 'Content-Type: application/json' \
    -u YOUR_API_KEY:

 
2. Client SDKs - official client libraries for TypeScript, Go and Python.
 

import { CovalentClient } from "@covalenthq/client-sdk";

(async () => {
   const client = new CovalentClient("YOUR_API_KEY");
   try {
    const approvals = client.SecurityService.getNftApprovals("eth-mainnet", "demo.eth");
    console.log(approvals.data);
} catch (error) {
    console.log(error.message);
}
})();

 
3. GoldRush Kit - beautifully designed React components for your dApp frontend
GoldRush Component Example

See the following links to our API Docs and Guides:
- API Docs: comprehensive knowledge base for all things Covalent
- Guides: learn how to build for various use cases and expand your onchain knowledge

Supported Chains

Avalanche
Celo
Optimistic Ethereum
Polygon
Arbitrum
Gnosis
Fantom
Ethereum logo
Ethereum
Arbitrum Nova
BNB Smart Chain
zkSync
Scroll
Blast
Base
Polygon zkEVM

Published on May 3, 2024

Support Website Support Email

Plans & features

Premium - $50/month
  • Premium - $50/month
  • Professional - $250/month
  • Platinum - $500/month
Enterprise Sales
50,000 API Credits Per Month
Risk Assessment Included
Low, medium and high risk labels and value-at-risk in fiat prices assigned for each contract that can spend on a wallet's behalf
Multichain Support
Support for 200+ blockchains
ERC20 and NFT Contract Support