You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generic messages can be transferred between EVM chains using the Sygma SDK. To facilitate the transfer, the following steps are required:
Specify generic message transfer parameters and create an instance of GenericMessageTransfer using createCrossChainContractCall method from @buildwithsygma/evm package.
Sign and send the transfer transaction.
There are a few requirements for the Destination chain contract function that gets called. Refer to the Generic Message Passing documentation for details.
1. Create and initialize the transfer object
To initialize the generic message transfer object, the following parameters need to be supplied:
An EIP1193 compatible EVM provider
Environment variable SYGMA_ENV needs to be set as mainnet or testnet
Address, ABI of the contract and the function that will be invoked on the destination chain.
Update the page with following contents:
Generic Message Passing (GMP)
Generic messages can be transferred between EVM chains using the Sygma SDK. To facilitate the transfer, the following steps are required:
GenericMessageTransfer
usingcreateCrossChainContractCall
method from@buildwithsygma/evm
package.There are a few requirements for the Destination chain contract function that gets called. Refer to the Generic Message Passing documentation for details.
1. Create and initialize the transfer object
To initialize the generic message transfer object, the following parameters need to be supplied:
SYGMA_ENV
needs to be set asmainnet
ortestnet
2. Sign and send the transfer transaction
A full example of the above can be found here
The text was updated successfully, but these errors were encountered: