Withdraw
The FISH bridge sends the FISH BEP-20 directly from the platform hot wallet on BSC. It does not bridge to other chains or convert the asset.
How It Works
Section titled “How It Works”- Call
POST /withdraw/previewwith your Openfish wallet address, BSC destination, token address, and amount. - Show the preview to the user: amount, fee, total debit, hot-wallet liquidity, and
canWithdraw. - After explicit confirmation, call
POST /withdrawwith the same fields. - The bridge debits your Openfish FISH balance.
- The hot wallet sends the FISH token to your BSC recipient address.
- Track progress with
GET /status/{address}.
Endpoint
Section titled “Endpoint”POST https://bridge.openfish.me/withdraw/previewPOST https://bridge.openfish.me/withdrawRequest Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Your Openfish wallet address |
toChainId | string | Yes | Must be "56" |
toTokenAddress | string | Yes | Configured FISH token address |
recipientAddr | string | Yes | Recipient BSC wallet address |
amount | string | No | Amount in base units. Omit or set "all" to withdraw full available balance minus fee. |
Example
Section titled “Example”curl -X POST https://bridge.openfish.me/withdraw/preview \ -H "Content-Type: application/json" \ -d '{ "address": "0xabc0000000000000000000000000000000000000", "toChainId": "56", "toTokenAddress": "0xdcc3990630eB5Ffd8914d639198cCa593e59465A", "recipientAddr": "0xdef0000000000000000000000000000000000000", "amount": "1000000000000000000" }'
curl -X POST https://bridge.openfish.me/withdraw \ -H "Content-Type: application/json" \ -d '{ "address": "0xabc0000000000000000000000000000000000000", "toChainId": "56", "toTokenAddress": "0xdcc3990630eB5Ffd8914d639198cCa593e59465A", "recipientAddr": "0xdef0000000000000000000000000000000000000", "amount": "1000000000000000000" }'Important Notes
Section titled “Important Notes”- Withdrawals require the bridge hot wallet to hold enough FISH and BNB gas.
- The bridge only supports BSC in this environment.
- The token address must match
GET /supported-assets. - Withdrawal fee, if configured, is denominated in FISH base units.
Next Steps
Section titled “Next Steps”- Supported Assets — Confirm the token address.
- Check Status — Track withdrawal progress.