encode_mint_recipient
Documentation for eth_defi.cctp.transfer.encode_mint_recipient function.
- encode_mint_recipient(address)
Convert an Ethereum address to bytes32 format for the
mintRecipientparameter.CCTP uses bytes32 for recipient addresses to support non-EVM chains. For EVM chains, the address is left-padded with zeros to 32 bytes.
- Parameters
address (Union[eth_typing.evm.HexAddress, str]) – Ethereum address (0x-prefixed hex string)
- Returns
32-byte representation of the address
- Return type