prepare_receive_message

Documentation for eth_defi.cctp.receive.prepare_receive_message function.

prepare_receive_message(web3, message, attestation)

Build a bound receiveMessage() call on MessageTransmitterV2.

This relays the attestation to the destination chain, causing USDC to be minted to the recipient specified in the original depositForBurn() call.

Anyone can call this function (unless destinationCaller was set in the original burn). No special permissions are required.

Parameters
  • web3 (web3.main.Web3) – Web3 connection to the destination chain

  • message (bytes) – The CCTP message bytes from the attestation service

  • attestation (bytes) – The signed attestation bytes from the attestation service

Returns

Bound contract function ready to be transacted

Return type

web3.contract.contract.ContractFunction