Files
smom-dbis-138/docs/scripts/scripts_ccip_ccip-send.sh.md

30 lines
855 B
Markdown
Raw Normal View History

# scripts/ccip/ccip-send.sh
**Name**: `ccip-send.sh`
Approve fee/token and call sendCrossChain for WETH bridge
**Uses common library**: yes
**Has --help**: yes
## Usage
`${SCRIPT_NAME} --token {weth9|weth10} --selector <chainSelector> --recipient <address> --amount <wei> --pk <hex> [--rpc <url>] [--help]`
### Options
```
--token <name> Bridge token type (weth9|weth10)
--selector N Destination chain selector (uint64)
--recipient ADDR Recipient address on destination chain
--amount WEI Amount of token to send (wei)
--pk HEX Deployer private key (0x...)
--rpc URL RPC URL (default: ETHEREUM_MAINNET_RPC or public)
--help Show help
```
## Examples
```bash
${SCRIPT_NAME} --token {weth9|weth10} --selector <chainSelector> --recipient <address> --amount <wei> --pk <hex> [--rpc <url>] [--help]
```