Contract Interface
Last updated
Last updated
OmniService transfer out of message data
Note: transferOut
will be deprecated, it is recommended to use messageOut
instead.
parameter | type | comment |
---|---|---|
type | comment |
---|---|
OnmiService sends a cross-chain message
When a message execution fails, the contract stores the hash of the relevant information. Passing the corresponding parameters allows for retrying the execution of the cross-chain message.
Get the specific fee for the target chain.
Granting the source chain the chain ID and address permissions to execute messages.
To check if the source chain's chain ID and address have permission to execute cross-chain messages on the target chain:
True means permission is granted (可以执行).
False means permission is not granted (不行).
parameter | type | comment |
---|---|---|
type | comment |
---|---|
parameter | type | comment |
---|---|---|
parameter | type | comment |
---|---|---|
value | type | comment |
---|---|---|
parameter | type | comment |
---|---|---|
parameter | type | comment |
---|---|---|
type | comment |
---|---|
_toChain
uint256
Target chain id to transfer out
_messageData
bytes
This is the information encoded from MessageData
_feeToken
address
This is the address of the token you want to use to pay the fee
bytes32
The order ID of the cross-chain message
_transferId
bytes32
Custom identifier provided by the caller
_initiator
address
The actual address of the message initiator, which is typically a user address
_referrer
address
Custom parameter provided by the caller, which can serve as an identifier for the caller
_toChain
uint256
The chain id of the target chain
_messageData
bytes
This is the information encoded from MessageData
_feeToken
address
This is the address of the token you want to use to pay the fee
bytes32
The order ID of the cross-chain message
_orderId
bytes32
The order ID of the cross-chain message
_fromChain
uint256
The chain ID of the source chain
_fromAddress
bytes
The address of the source chain
_messageData
bytes
This is the messageData
validated by the source chain
_toChain
uint256
The chain id of the target chain
_feeToken
address
This is the address of the token you want to use to pay the fee
_gasLimit
uint256
Customizable gas limit
amount
uint256
The amount of the fee
receiverAddress
address
The address that receives the fee.
_fromChain
uint256
The chain ID of the source chain
_fromAddress
bytes
The address of the source chain
_tag
bool
True indicates permission granted, false indicates permission not granted
_targetAddress
address
The contract address on the target chain
_fromChain
uint256
The chain id of the target chain
_fromAddress
bytes
The address of the source chain
bool
True indicates permission granted, false indicates permission not granted.