Skip to main content
Glama

mcp-google-sheets

check-address-sanction.ts1.18 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { chainalysisApiAuth } from '../..'; export const checkAddressSanction = createAction({ name: 'checkAddressSanction', displayName: 'Check Address Sanctions', description: 'Check if an address is sanctioned', auth: chainalysisApiAuth, requireAuth: true, props: { address: Property.ShortText({ displayName: 'Address', description: 'Address to check for sanctions', required: true, }), }, async run({ auth, propsValue }) { const address = propsValue.address; const apiKey = auth; try { const response = await fetch(`https://public.chainalysis.com/api/v1/address/${address}`, { method: 'GET', headers: { 'X-API-Key': apiKey, 'Accept': 'application/json', }, }); if (!response.ok) { throw new Error(`Error: ${response.status} ${response.statusText}`); } const data = await response.json(); return data; } catch (error) { console.error('[chainalysis-api-checkAddressSanction] Error checking address sanction:', error); throw error; } }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server