Jump to
Ctrl
+
/

Decode Raw Transaction Hex EVM

POST
/utils/evm/{blockchain}/{network}/decode-raw-transaction

Through this endpoint customers can decode a raw transaction hex and see the decoded transactions' details.

Path Parameters

blockchain string Required

Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.

network string Required

Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while network like "testnet" is a test network.

Query Parameters

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

Request Body Schema application/json

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

data object Required
item object Required
rawTransactionHex string Required

Represents the raw transaction Hex that has to be decoded.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2024-12-12
requestId string Required

Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

601c1710034ed6d407996b30
context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

yourExampleString
data object Required
item object Required
id string Required

Represents the decoded transaction hex.

00a8a090a7c78f64e4626e6720b305edd95fcd7865b5b45864a88070a8079cea
gasLimit integer Required

Represents the amount of gas used by this specific transaction alone.

552020
gasPaidForData integer Required

Represents the amount of gas paid for the data in the transaction.

0
inputData string Required

Represents additional information that is required for the transaction.

0x67a5cd0600000000000000000000000031f42841c2db5173425b5223809cf3a38fede360
nonce integer Required

Represents the sequential running number for an address, starting from 0 for the first transaction.

1
r string Required

Represents output of an ECDSA signature.

0xc297031972fe2d4926e01e66768d669882ace256f8a8397f757af341f5e7c499
recipient string Required

The address which receives this transaction

0xd30b438df65f4f788563b2b3611bd6059bff4ad9
s string Required

Represents output of an ECDSA signature.

0x7b717faa31c5edf9332e1cd5fa3f736838a9262834ece621bb3c30671b66ab05
sender string Required

Represents the address which sends this transaction

0x7b717faa31c5edf9332e1cd5fa3f736838a9262834ece621bb3c30671b66ab05
type integer Required

Specifies the transaction type as one from three options: if response returns a "0" it means the raw transaction includes legacy transaction data, if it is "1" - includes access lists for EIP2930, and if it is "2" - EIP1559 data.

0
v string Required

Defines the the recovery id.

0x26
fee object Required
approximateAmount string Required

This attribute represents the max fee value.

0.00016932
approximateMinimumRequiredAmount string Required

Defines the approximate minimum fee that is required for the transaction.

0.000021
unit string Required

String representation of the fee unit

BNB
aproximateAmount string Required

Represents the approximate fee amount that will be used for this transaction

0.00003
gasPrice object Required
amount string Required

Represents the price offered to the miner to purchase this amount of gas.

2994782927
unit string Required

String representation of the gas price unit

WEI
value object Required
amount string Required

Represents the transaction amount.

2.312
unit string Required

String representation of the amount unit

BNB
blockchainSpecific object Optional
fee object Optional
maxFeePerGas string Optional

Defines the maximum amount that customer is willing to pay per unit of gas to get his transaction included in a block.

0.000000149248157973
maxPrioriryFeePerGas string Optional

Represents determined by the user value that is paid directly to miners.

0.000000002
unit string Required

String representation of the fee unit

ETH

Credits Cost : 1000 Credits for 1 Results

Was this page helpful?
Yes
No
Powered by
Language
URL

{
    "apiVersion": "2024-12-12",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "id": "00a8a090a7c78f64e4626e6720b305edd95fcd7865b5b45864a88070a8079cea",
            "gasLimit": 552020,
            "gasPaidForData": 0,
            "inputData": "0x67a5cd0600000000000000000000000031f42841c2db5173425b5223809cf3a38fede360",
            "nonce": 1,
            "r": "0xc297031972fe2d4926e01e66768d669882ace256f8a8397f757af341f5e7c499",
            "recipient": "0xd30b438df65f4f788563b2b3611bd6059bff4ad9",
            "s": "0x7b717faa31c5edf9332e1cd5fa3f736838a9262834ece621bb3c30671b66ab05",
            "sender": "0x7b717faa31c5edf9332e1cd5fa3f736838a9262834ece621bb3c30671b66ab05",
            "type": 0,
            "v": "0x26",
            "fee": {
                "approximateAmount": "0.00016932",
                "approximateMinimumRequiredAmount": "0.000021",
                "unit": "BNB",
                "aproximateAmount": "0.00003"
            },
            "gasPrice": {
                "amount": "2994782927",
                "unit": "WEI"
            },
            "value": {
                "amount": "2.312",
                "unit": "BNB"
            },
            "blockchainSpecific": {
                "fee": {
                    "maxFeePerGas": "0.000000149248157973",
                    "maxPrioriryFeePerGas": "0.000000002",
                    "unit": "ETH"
                }
            }
        }
    }
}