You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitting this batched data is similar to the description in [Send AXL to an EVM chain](/pages/learn/cli/axl-to-evm).
65
+
To submit the batched data, use a wallet such as MetaMask to send a transaction to the Axelar gateway contract address (shown above) on the EVM chain, with the `execute_data` hex pasted into the transaction's data field. Do not send any tokens with this transaction.
66
66
67
67
- Note the `[EVM_TOKEN_TX_HASH]` for the transaction to the gateway contract.
Copy file name to clipboardExpand all lines: src/content/docs/dev/gas-service/pay-gas.mdx
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,10 +53,7 @@ Transactions using Axelar often have costs associated with their source chain, t
53
53
54
54
### Transaction fees
55
55
56
-
To simplify paying for transaction pricing through the pipeline, Axelar has two general solutions:
57
-
58
-
- For General Message Passing (function calls to `callContract()` or `callContractWithToken()`), a chain-agnostic relaying service is implemented to accept gas payments from users on the source chain in its native currency.
59
-
- For token transfers, a fixed “relayer fee” is deducted from the amount of assets being transferred cross-chain.
56
+
To simplify paying for transaction pricing through the pipeline, Axelar implements a chain-agnostic relaying service for General Message Passing (function calls to `callContract()` or `callContractWithToken()`) that accepts gas payments from users on the source chain in its native currency.
60
57
61
58
All costs can be seen on [Axelarscan](https://axelarscan.io/) by looking at a specific transaction — for example, [from Moonbeam to BNB Chain](https://axelarscan.io/gmp/0x598d35609919bc6c0737ae229af56b2135ccf5c1b031e1bd8d45f4ec4190e5a4:65).
Copy file name to clipboardExpand all lines: src/content/docs/dev/gas-service/pricing.mdx
+6-16Lines changed: 6 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,10 @@ Transactions using Axelar often have costs associated on their source chain, the
7
7
1. Relaying to the gateway contract on the destination chain
8
8
1. Executing the destination smart contract with the payload
9
9
10
-
To simplify paying for transaction pricing through the pipeline, Axelar has two general solutions to this problem.
11
-
12
-
- For token transfers, a fixed "relayer fee" is deducted from the amount of assets being transferred cross-chain.
13
-
- For General Message Passing (`callContract` and `callContractWithToken`), a chain-agnostic gas relaying service is implemented to accept gas payments from users on the source chain in its native currency.
10
+
To simplify paying for transaction pricing through the pipeline, Axelar implements a chain-agnostic gas relaying service for General Message Passing (`callContract` and `callContractWithToken`) that accepts gas payments from users on the source chain in its native currency.
14
11
15
12
All costs can be seen on [Axelarscan](https://axelarscan.io) by looking at a specific transaction, [from Moonbeam to BNB Chain for example](https://axelarscan.io/gmp/0x598d35609919bc6c0737ae229af56b2135ccf5c1b031e1bd8d45f4ec4190e5a4:65).
16
13
17
-
## Token transfers via `sendToken` or `getDepositAddress`
18
-
19
-
Prices are fixed based on the source chain, destination chain, and asset. You can query these directly on the Axelar network or refer to the `Resources` tab under the `Cross-chain relayer gas fee` section.
20
-
21
-
Whether you are transferring 10 axlUSDC or 10,000,000 axlUSDC, the cost is the same. The amount sent in a transaction must exceed the cost of the fee; it otherwise remains in the queue until the aggregate amount exceeds the fee.
22
-
23
-
Asset transfers were designed this way to give users a `one click` experience. This simplified UX makes it so that users are not required to submit multiple blockchain transactions approving payments in addition to the transactions for sending the tokens.
24
-
25
14
## callContract (General Message Passing)
26
15
27
16
For general message passing, Axelar's gas service allows the user/dApp to pay all of the gas costs in a single transaction on the source chain in its native currency. To pay for each blockchain transaction, the gas service uses current conversion rates to translate the gas paid on the source chain for the gas cost used by Axelar and the destination chains.
@@ -53,8 +42,9 @@ The `estimateGasFee` method exposes two additional optional parameters to enhanc
53
42
54
43
The remainder of any gas paid upfront for a transaction that is not used by our gas service is refunded to the specified refund address.
55
44
56
-
`Refund = Gas deposit - Network Base Fee - Execution Fee - approximate gas to process the refund**.`
57
-
\*\*Gas estimated to transfer the refund is usually a bit higher than the actual gas used.
45
+
`Refund = Gas deposit - Network Base Fee - Execution Fee - approximate gas to process the refund`
46
+
47
+
_Note: the gas estimated to transfer the refund is usually a bit higher than the actual gas used._
58
48
59
49
#### RoundTrips Transactions (Two-way calls)
60
50
@@ -88,9 +78,9 @@ Fees for GMP express include all of the same fees as `callContractWithToken`, pl
88
78
89
79
For GMP Express transactions, the total refund will then be:
90
80
91
-
`Refund = Gas deposit - Express fee - Gas used to execute express method - Network Base Fee - Execution Fee - approximate gas to process the refund**.`
81
+
`Refund = Gas deposit - Express fee - Gas used to execute express method - Network Base Fee - Execution Fee - approximate gas to process the refund`
92
82
93
-
\*\*Gas estimated to transfer the refund is usually a bit higher than the actual gas used.
83
+
_Note: the gas estimated to transfer the refund is usually a bit higher than the actual gas used._
0 commit comments