AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction, PieceAuth, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { MEMPOOL_API_BASE_URL } from '../../common';
export const getAddressTransactionsMempool = createAction({
auth:PieceAuth.None(),
name: 'get_address_transactions_mempool',
displayName: 'Get Address Transactions (Mempool)',
description: 'Returns unconfirmed transactions (up to 50)',
audience: 'both',
aiMetadata: { description: 'Returns only the pending, unconfirmed mempool transactions for a Bitcoin address (up to 50). Read-only and idempotent, though entries disappear as they confirm or are dropped. Choose this to detect incoming/outgoing payments not yet mined; use the Chain variant for confirmed history.', idempotent: true },
// category: 'Addresses',
props: {
address: Property.ShortText({
displayName: 'Address',
description: 'The Bitcoin address to look up mempool transactions for',
required: true
})
},
async run({ propsValue }) {
const response = await httpClient.sendRequest({
method: HttpMethod.GET,
url: `${MEMPOOL_API_BASE_URL}/api/address/${propsValue.address}/txs/mempool`,
});
return response.body;
},
});