Skip to content

Commit b0c1833

Browse files
Merge pull request #65 from SocketDotTech/fix/estimate-fee-api
fix: add payload
2 parents fa14d44 + 23fe7fa commit b0c1833

File tree

2 files changed

+6644
-6822
lines changed

2 files changed

+6644
-6822
lines changed

docs/dev-resources/APIReference/EstimateFee.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ The fees for relaying messages can be calculated on-chain by calling the `getMin
6262
| `srcChainSlug` | Slug of source chain |
6363
| `dstChainSlug` | Slug of destination chain |
6464
| `msgGasLimit`| Gas limit required for executing the destination payload |
65+
| `payloadLength`| Length of payload to be executed on destination plug |
6566
6667
#### Example Request
6768
6869
Estimating fees for sending a message from Polygon to Optimism
6970
70-
[https://prod.dlapi.socket.tech/v1/estimate-min-fees?srcPlug=0x7b9ed5C43E87DAFB03211651d4FA41fEa1Eb9b3D&srcChainSlug=2999&dstChainSlug=10&msgGasLimit=100000](https://prod.dlapi.socket.tech/estimate-min-fees?srcPlug=0x7b9ed5C43E87DAFB03211651d4FA41fEa1Eb9b3D&srcChainSlug=2999&dstChainSlug=10&msgGasLimit=100000)
71+
[https://prod.dlapi.socket.tech/v1/estimate-min-fees?srcPlug=0x7b9ed5C43E87DAFB03211651d4FA41fEa1Eb9b3D&srcChainSlug=2999&dstChainSlug=10&msgGasLimit=100000&payloadLength=100](https://prod.dlapi.socket.tech/estimate-min-fees?srcPlug=0x7b9ed5C43E87DAFB03211651d4FA41fEa1Eb9b3D&srcChainSlug=2999&dstChainSlug=10&msgGasLimit=100000&payloadLength=100)
7172
7273
Note : Add the *x-api-key* header mentioned above in the request for authentication.
7374

0 commit comments

Comments
 (0)