# TransactionDecodeError

> Bytes or base64 text could not be decoded as an Algorand transaction.

```python
from x402_algorand import TransactionDecodeError
```

```python
class TransactionDecodeError(X402AlgorandError, ValueError)
```

Bytes or base64 text could not be decoded as an Algorand transaction.

## Examples

```python
from x402_algorand import TransactionDecodeError, decode_base64_transaction

try:
    decode_base64_transaction("not base64!")
except TransactionDecodeError as e:  # also a ValueError
    print(e)
```

Source: [x402_algorand/errors.py](https://github.com/x402-avm/x402-algorand/blob/main/x402_algorand/errors.py#L39)

Source: https://x402-avm.github.io/reference/python/x402-algorand/transaction-decode-error
