> For the complete documentation index, see [llms.txt](https://docs.asterizm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.asterizm.io/infrastructure/asterizm-interfaces/iasterizmenv.md).

# IAsterizmEnv

The `IAsterizmEnv` interface defines a set of data transfer objects (DTOs) used to manage cross-chain transactions. These DTOs enable the handling of transaction data, from initialization to validation.

{% @github-files/github-code-block url="<https://github.com/Asterizm-Protocol/asterizm-contracts-evm/blob/master/contracts/interfaces/IAsterizmEnv.sol>" %}

### Structs

#### BaseTransferDirectionDto

Defines source and destination chain details for cross-chain transactions.

**Fields:** `srcChainId`, `srcAddress`, `dstChainId`, `dstAddress`

#### ClInitTransferRequestDto

Represents the client’s request to initiate a transfer.

**Fields:** `dstChainId`, `dstAddress`, `feeAmount`, `txId`, `transferHash`

#### InternalClInitTransferRequestDto

Internal structure for initializing a client transfer.

**Fields:** `dstChainId`, `dstAddress`, `feeAmount`, `payload`

#### IzAsterizmReceiveRequestDto

Used for processing received transfer requests on the initializer's side.

**Fields:** `srcChainId`, `srcAddress`, `dstChainId`, `dstAddress`, `txId`, `transferHash`

#### ClAsterizmReceiveRequestDto

Client-side structure for receiving transfers.

**Fields:** `srcChainId`, `srcAddress`, `dstChainId`, `dstAddress`, `txId`, `transferHash`, `payload`

#### TrSendMessageRequestDto

Structure with details for sending messages between chains using the translator.

**Fields:** `srcAddress`, `dstChainId`, `dstAddress`, `txId`, `transferHash`, `transferResultNotifyFlag`

#### TrTransferMessageRequestDto

Structure that specifies message transfer with gas limits for the translator.

**Fields:** `gasLimit`, `payload`

#### IzInitTransferRequestDto

Defines the initializer's transfer request, including relay details and fees.

**Fields:** `dstChainId`, `dstAddress`, `transferHash`, `txId`, `relay`, `transferResultNotifyFlag`, `feeToken`

#### IzReceivePayloadRequestDto

Used by the initializer to process received payloads.

**Fields:** `srcChainId`, `srcAddress`, `dstChainId`, `dstAddress`, `gasLimit`, `txId`, `transferHash`

#### IzRetryPayloadRequestDto

Handles retrying payload delivery with additional control parameters.

**Fields:** `srcChainId`, `srcAddress`, `dstChainId`, `dstAddress`, `nonce`, `gasLimit`, `forceOrder`, `useEncryption`, `transferHash`, `payload`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.asterizm.io/infrastructure/asterizm-interfaces/iasterizmenv.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
