@@ -4,10 +4,12 @@ withdraw tokens, use the ZetaChain gateway.
4
4
The ZetaChain gateway supports:
5
5
6
6
- Withdrawing ZRC-20 tokens as native gas or ERC-20 tokens to connected chains.
7
- - Withdrawing ZETA tokens to connected chains.
8
7
- Withdrawing tokens and making a contract call on connected chains.
9
8
- Calling contracts on connected chains.
10
9
10
+ Note: Withdrawing ZETA tokens is currently not supported and will revert with
11
+ ` ZETANotSupported() ` .
12
+
11
13
## Withdraw ZRC-20 Tokens
12
14
13
15
To withdraw ZRC-20 tokens to an EOA or a contract on a connected chain, use the
@@ -31,6 +33,8 @@ address is chain-agnostic. When withdrawing to an EVM chain, ensure you convert
31
33
The ` amount ` specifies the quantity to withdraw, and ` zrc20 ` is the ZRC-20
32
34
address of the token being withdrawn.
33
35
36
+ The ` revertOptions.revertMessage ` must not exceed 1024 bytes in length.
37
+
34
38
You don't need to specify the destination chain since each ZRC-20 token is tied
35
39
to the chain from which it was deposited. A ZRC-20 token can only be withdrawn
36
40
to its originating chain. For example, to withdraw ZRC-20 USDC.ETH to the BNB
@@ -49,6 +53,9 @@ This function withdraws tokens and makes a call to a contract on the connected
49
53
chain identified by the ` zrc20 ` address. For instance, if ZRC-20 ETH is
50
54
withdrawn, the call is made to a contract on Ethereum.
51
55
56
+ The combined length of ` message ` and ` revertOptions.revertMessage ` must not
57
+ exceed 1024 bytes.
58
+
52
59
## Call a Contract on a Connected Chain
53
60
54
61
To call a contract on a connected chain without withdrawing tokens, use the
@@ -62,6 +69,9 @@ Here, `zrc20` represents the ZRC-20 token address of the gas token for the
62
69
destination chain. This address acts as an identifier for the target chain. For
63
70
example, to call a contract on Ethereum, use the ZRC-20 ETH token address.
64
71
72
+ The combined length of ` message ` and ` revertOptions.revertMessage ` must not
73
+ exceed 1024 bytes.
74
+
65
75
## Call Options
66
76
67
77
The ` CallOptions ` parameter specifies details for making calls to contracts on
0 commit comments