import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chainaware_ai: {
type: "app",
app: "chainaware_ai",
}
},
async run({steps, $}) {
const data = {
"network": `ETH`,
//Enter a valid ETH wallet address below to test.
"walletAddress": `[Wallet Address]`,
"calculate": `true`,
}
return await axios($, {
method: "post",
url: `https://enterprise.api.chainaware.ai/fraud/check`,
headers: {
"x-api-key": `${this.chainaware_ai.$auth.api_key}`,
},
data,
})
},
})
Conducts a comprehensive fraud check. See the documentation.
ChainAware.ai uses API keys for authentication. When you connect your ChainAware.ai account, Pipedream securely stores the keys so you can easily authenticate to ChainAware.ai APIs in both code and no-code steps.