Skip to content

Commit

Permalink
Merge pull request #65 from SocketDotTech/fix/estimate-fee-api
Browse files Browse the repository at this point in the history
fix: add payload
  • Loading branch information
ameeshaagrawal authored Jul 4, 2024
2 parents fa14d44 + 23fe7fa commit b0c1833
Show file tree
Hide file tree
Showing 2 changed files with 6,644 additions and 6,822 deletions.
3 changes: 2 additions & 1 deletion docs/dev-resources/APIReference/EstimateFee.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ The fees for relaying messages can be calculated on-chain by calling the `getMin
| `srcChainSlug` | Slug of source chain |
| `dstChainSlug` | Slug of destination chain |
| `msgGasLimit`| Gas limit required for executing the destination payload |
| `payloadLength`| Length of payload to be executed on destination plug |
#### Example Request
Estimating fees for sending a message from Polygon to Optimism
[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)
[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)
Note : Add the *x-api-key* header mentioned above in the request for authentication.
Expand Down
Loading

0 comments on commit b0c1833

Please sign in to comment.