---
title: "Verify a Transaction"
method: POST
path: "/{blockchain_id}/verify"
---

# Verify a Transaction

`POST /{blockchain_id}/verify`

Verifies whether a signed/unsigned transaction matches the expected input parameters.

## Request body

- union
  - ApiTxVerifyRequestEVM
    - `tx` object, required
      - `to` string — The recipient of the transaction.
      - `value` integer — The amount you wish to transfer.
      - `gas` integer — Gas of transaction. If omitted, the gas will be estimated using eth_estimateGas.
      - `maxPriorityFeePerGas` integer — The max priority fee per gas. Also referred to as the miner tip. When omitted an estimate will be used.
      - `maxFeePerGas` integer — The max fee per gas, this includes the base fee and max priority fee per gas. When omitted an esitmate will be used.
      - `nonce` integer — The account Nonce.
      - `data` string — A hex string specifying the input data of the message call
    - `raw_encoded_tx` string, required — The unsigned encoded transaction
  - ApiTxVerifyRequestBTC
    - `tx` ApiTxCreateRequestBTC, required
      - `from` ApiTxSourceBTC[], required — The source UTXOs.
        - `tx_id` string, required — UTXO's transaction ID
        - `index` integer, required — UTXO's index in source transaction
      - `to` ApiTxDestinationCreateBTC[], required — The recipient of the transaction.
        - `destination` string, required — The destination address.
        - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
    - `raw_encoded_tx` string, required — The encoded transaction
  - ApiTxVerifyRequestTron
    - `tx` union, required
      - ApiTxCreateRequestTron
        - `from` string, required — The account ID for the originating funds.
        - `to` string — The recipient of the transaction.
        - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `contract` ApiTxCreateRequestTronContract
          - `address` string
          - `parameter` string
          - `function_selector` string
          - `data` string
          - `fee_limit` union — A value can either be a decimal string or the lowest unit of the currency as an integer
            - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
            - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `expiration_seconds` integer — Time in seconds the transaction will expire after creation. (Default 30 minutes)
      - ApiTxCreateTokenRequestTron
        - `contract_address` string, required — The contract address of the token.
        - `from` string, required
        - `to` string, required
        - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `fee_limit` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `expiration_seconds` integer — Time in seconds the transaction will expire after creation. (Default 30 minutes)
    - `raw_encoded_tx` string, required — The hex encoded protobuf unsigned transaction.
  - ApiTxVerifyRequestStellar
    - `tx` ApiTxCreateRequestStellar
      - `from` string, required — The account ID for the originating funds.
      - `to` string, required — The recipient of the transaction.
      - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
        - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
        - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
      - `fee` union — A value can either be a decimal string or the lowest unit of the currency as an integer
        - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
        - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
      - `expiration_seconds` integer — Time the transaction will expire in seconds. Default is 30 minutes.
    - `raw_encoded_tx` string — The base64 encoded transaction
  - ApiTxVerifyRequestSolana
    - `tx` union
      - ApiTxCreateRequestSolana
        - `from` string, required — The account ID for the originating funds.
        - `to` string, required — The recipient of the transaction.
        - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `nonce_account` string — The nonce account used for the transfer.
        - `fee` integer — The prioritization fee.
      - ApiTxCreateTokenRequestSolana
        - `token_address` string, required — The mint account address of the token.
        - `from` string, required — The owner's token account address to send the token from.
        - `to` string, required — The recipients token account address to sent the token to.
        - `value` union, required — A value can either be a decimal string or the lowest unit of the currency as an integer
          - integer — Value as an integer in the lowest unit of the currency (for example Wei or Satoshi)
          - string — Value as a string in human readable format. This is in the highest unit of the currecy (for example Eth or BTC)
        - `nonce_account` string — The nonce account used for the transfer.
        - `fee` integer — The prioritization fee.
    - `raw_encoded_tx` string — The base64 encoded transaction

## Response `200`

Request successful

## Other responses

- `400` — Bad Request
- `401` — Invalid or expired token
- `429` — Rate limit exceeded
- `500` — An internal server error happened
- `501` — The request endpoint is not implemented
- `503` — The resource you are trying to access is currently unavailable

---

[API](https://skmtc.net/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.net/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/versions/f94e296a08a3/schema)
