otmoic-cli ask
The otmoic-cli ask command is used to request a relay quote for a specified bridge and amount. This command interacts with the relay service to fetch the best available quote based on the provided parameters.
Usage
sh
otmoic-cli ask [OPTIONS]Options
-r, --relay: Relay URL.-n, --network: Network (mainnet/testnet).-c, --chainRpc: RPC config JSON (e.g.,{ bsc: "<RPC_BSC>" }).-b, --bridge: Bridge name (e.g.,BSC=0x55d398326f99059ff775485246999027b3197955(USDT)-->OPT-0x94b00aa00579c1307b0ef2c499ad98a8ce58e58(USDT)).-a, --amount: Amount to exchange.
Examples
sh
# Request a relay quote with specified parameters
otmoic-cli ask --relay https://relay.example.com --network mainnet --chainRpc '{"bsc": "https://bsc.rpc.url"}' --bridge BSC=0x55d398326f99059ff775485246999027b3197955(USDT)-->OPT-0x94b00aa00579c1307b0ef2c499ad98a8ce58e58(USDT) --amount 100Code Reference
The implementation of this command can be found in src/commands/ask.ts.