bridge
Add Liquidity
This endpoint enables you to add liquidity to a cross-chain bridge by depositing a specified amount of tokens from a source blockchain. Upon a successful call, the API returns comprehensive details about the liquidity addition, including chain IDs, source and destination addresses, gas settings, and a unique reference ID for tracking.
💡 Compute Unit Value: 85 (Fixed)
post/defi/v1/bridge/addliquidity
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/bridge/addliquidity
- AuthAPI key in header X-API-Key
Request body
Example request
{
"bridgeId": "100",
"srcChainId": "1",
"srcTokenSymbol": "usdt",
"srcTokenAddress": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"amountIn": "1000000000000000000",
"gas": "100000",
"srcChainSymbol": "ETH",
"gasPriority": "low",
"enableFee": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
"value": "0",
"gas": "400000",
"data": "0x87b21efc00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000989680000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994",
"referenceId": "a7717ba0611041e293026d6f648596ee"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.