---
title: "getScamObjectsByUnsignedTransaction"
method: POST
path: "/v1/security/scams/tx-body"
tags: ["Security"]
---

# getScamObjectsByUnsignedTransaction

`POST /v1/security/scams/tx-body`

## Request

- Base URL: `https://api.blockberry.one/mina-mesa`
- URL: `https://api.blockberry.one/mina-mesa/v1/security/scams/tx-body`
- Auth: API key in header `x-api-key`

Check if the queried unsigned transaction involves any scam objects (accounts, tokens, or zkApp accounts).

## Request body

- WalletTransactionDto
  - `feePayer` FeePayerDto, required: The details of the account that paid a fee for running the transaction.
    - `body` FeePayerBodyDto
      - `publicKey` string
      - `tokenId` string
  - `accountUpdates` AccountUpdateDto[], required: The details of the accounts involved in the transactions.
    - `body` AccountUpdateBodyDto
      - `publicKey` string
      - `tokenId` string

## Response `200`

OK

- ScamDto[]
  - `scamId` integer
  - `objectType` string
  - `onchainId` string
  - `defaultSecurityMessage` string
  - `securityMessage` string
  - `scamType` string

---

[API](https://skmtc.dev/blockberry/apis/mina-mesa-api.md) - [All operations](https://skmtc.dev/blockberry/apis/mina-mesa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockberry/apis/mina-mesa-api/revisions/5dcb030c538f?raw)
