bridge-oft
Transfer OFT tokens across blockchain networks using LayerZero protocol. Specify token address, amount, source and destination chains, and receiver address to execute cross-chain bridging.
Instructions
Bridges OFT tokens from one chain to another using LayerZero.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | The amount of tokens to bridge (e.g., '100'). | |
extraOptions | No | Extra options for LayerZero message execution (default: '0x'). | 0x |
fromChain | Yes | The source chain name. | |
receiverAddress | Yes | The address to receive tokens on the destination chain. | |
toChain | Yes | The destination chain name. | |
tokenAddress | Yes | The address of the OFT contract on the source chain. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "The amount of tokens to bridge (e.g., '100').",
"type": "string"
},
"extraOptions": {
"default": "0x",
"description": "Extra options for LayerZero message execution (default: '0x').",
"type": "string"
},
"fromChain": {
"description": "The source chain name.",
"enum": [
"ArbitrumSepolia",
"baseSepolia"
],
"type": "string"
},
"receiverAddress": {
"description": "The address to receive tokens on the destination chain.",
"type": "string"
},
"toChain": {
"description": "The destination chain name.",
"enum": [
"ArbitrumSepolia",
"baseSepolia"
],
"type": "string"
},
"tokenAddress": {
"description": "The address of the OFT contract on the source chain.",
"type": "string"
}
},
"required": [
"tokenAddress",
"amount",
"fromChain",
"toChain",
"receiverAddress"
],
"type": "object"
}