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

# getScamObjectsByUnsignedTransaction

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

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.net/blockberry/apis/sui-mainnet-api.md) · [All operations](https://skmtc.net/blockberry/apis/sui-mainnet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockberry/sui-mainnet-api/revisions/3e4cb73940b7/schema)
