@actiongate/sdk
v0.1.1
Published
TypeScript SDK for the ActionGate treasury safety API.
Maintainers
Readme
@actiongate/sdk
TypeScript SDK for the ActionGate API.
Install
npm install @actiongate/sdkMethods
riskScore(payload)riskScoreWithMeta(payload)simulate(payload)simulateWithMeta(payload)policyGate(payload)policyGateWithMeta(payload)
Example
import { ActionGateClient } from "@actiongate/sdk";
const client = new ActionGateClient({ baseUrl: "https://api.actiongate.xyz" });
const result = await client.riskScore({
actor: { actor_id: "treasury-bot" },
action: { action_type: "transfer", network: "base", asset_symbol: "USDC", amount: "2500" }
});x402 V2 Support
- Sends
PAYMENT-SIGNATUREwhenpaymentSignatureis configured. - Parses
PAYMENT-REQUIREDandPAYMENT-RESPONSEheaders. - Exposes parsed payment metadata in
ActionGateErrorand*WithMetacalls.
