> For the complete documentation index, see [llms.txt](https://docs.bond.network/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bond.network/developers/smart-contracts/lztokendeployer.md).

# LzTokenDeployer

## Solidity API

### LzTokenDeployer

#### gasLimit

```solidity
uint256 gasLimit
```

#### deployer

```solidity
contract TokenDeployer deployer
```

#### initialize

```solidity
function initialize(address _endpoint, contract TokenDeployer _deployer) external
```

#### receive

```solidity
receive() external payable
```

#### withdraw

```solidity
function withdraw(address to) external payable
```

#### adapterParams

```solidity
function adapterParams() public view returns (bytes)
```

#### estimateFees

```solidity
function estimateFees(uint16 dstChainId, uint256 pid, address owner, string metadataURI, struct DataTypes.TaxableTokenData args) external view returns (uint256 nativeFee, uint256 zroFee)
```

#### setGasLimit

```solidity
function setGasLimit(uint256 _gasLimit) external
```

#### setTrustedForwarder

```solidity
function setTrustedForwarder(address _forwarder) external
```

#### deploy

```solidity
function deploy(uint16 dstChainId, uint256 pid, address owner, string metadataURI, struct DataTypes.TaxableTokenData args) external payable
```

#### \_nonblockingLzReceive

```solidity
function _nonblockingLzReceive(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload) internal virtual
```

#### \_msgData

```solidity
function _msgData() internal view virtual returns (bytes ret)
```

#### \_msgSender

```solidity
function _msgSender() internal view returns (address sender)
```

### LzTokenDeployerV2

#### setDeployer

```solidity
function setDeployer(contract TokenDeployer _deployer) external
```
