The endpoints enable transactions for various blockchain implementations, including EVM and others. It offers endpoints for creating, compiling, sending, decoding, and estimating transaction fees.

This API is part of the [Wallet Transact bundles](https://docs.blockdaemon.com/reference/wallet-transact).

## Authentication

You can authenticate your request by using your API Key either as a:

- Query parameter (`?apiKey=<YOUR_API_KEY>`)

or

- Header (`X-API-Key: <YOUR_API_KEY>`)

> 📘
>
> ### Info:
>
> Refer to the [Authenticate Your API Requests](https://docs.blockdaemon.com/docs/authentication) page for more details.

## Supported Protocols and Networks

| Protocol | Network |
| --- | --- |
| Avalanche | Mainnet-c<br>Testnet-c |
| Bitcoin | Mainnet<br>Testnet<br>Testnet4 |
| Bitcoincash | Mainnet<br>Testnet |
| Cosmos | Mainnet |
| Ethereum | Mainnet<br>Sepolia<br>Hoodi |
| Litecoin | Mainnet<br>Testnet |
| Near | Mainnet |
| Polkadot | Mainnet<br>Westend<br>Assethub Mainnet<br>Assethub Westend |
| Polygon | Mainnet<br>Amoy |
| Solana | Mainnet<br>Testnet<br>Devnet |
| Stellar | Mainnet<br>Testnet |
| Tron | Mainnet<br>Nile |

## API Endpoint Structure

The URL structure for the API endpoints is as follows.

```undefined
https://svc.blockdaemon.com/tx/v1/{blockchain_id}
```

Use the [Get the Supported Protocol Info](https://docs.blockdaemon.com/reference/getoverview-txapi) - `GET /{blockchain_id}` endpoint to see which transaction-related endpoints are available for a specific blockchain.

cURL

```curl
curl --request GET \
     --url https://svc.blockdaemon.com/tx/v1/PROTOCOL-NETWORK< \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR_API_KEY'
```

## Available Endpoints

| Endpoint | What's this for? |
| --- | --- |
| [Create an Unsigned Transaction](https://docs.blockdaemon.com/reference/txcreate-txapi) - `POST /create` | Generates an unsigned transaction that can be signed and broadcasted later. |
| [Derive a Signing Payload](https://docs.blockdaemon.com/reference/txderivesigningpayload) - `POST /derive_signing_payload` | Generates a signing payload from an unsigned transaction. |
| [Create an Unsigned Token Transfer Transaction](https://docs.blockdaemon.com/reference/txcreatetoken-txapi) - `POST /create/token` | Creates an unsigned transaction specifically for transferring tokens. |
| [Compile an Unsigned Transaction](https://docs.blockdaemon.com/reference/txcompile-txapi) - `POST /compile` | Converts an unsigned transaction into a format ready for signing. |
| [Compile and Broadcast an Unsigned Transaction](https://docs.blockdaemon.com/reference/txcompileandsend-txapi) - `POST /compile_and_send` | Compiles an unsigned transaction, signs it, and broadcasts it to the network. |
| [Submit a Signed Transaction](https://docs.blockdaemon.com/reference/txsend-txapi) - `POST /send` | Sends a signed transaction to the blockchain network for execution. |
| [Verify a Transaction](https://docs.blockdaemon.com/reference/txverify-txapi) - `POST /verify` | Checks if a given transaction is valid and correctly formatted. |
| [Decode a Transaction](https://docs.blockdaemon.com/reference/txdecode-txapi) - `POST /decode` | Decodes a raw transaction to a human-readable format. |
| [Get the Fee Estimation](https://docs.blockdaemon.com/reference/txestimatefee-txapi) - `POST /estimate_fee` | Estimates the network fees required for a transaction.
