curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangeinject \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": 500000000000,
"visible": true
}
'{
"txID": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": "500000000000"
},
"type_url": "type.googleapis.com/protocol.ExchangeInjectContract"
},
"type": "ExchangeInjectContract"
}
],
"ref_block_bytes": "ab91",
"ref_block_hash": "f5d4c3b2a2",
"expiration": 1672531320000,
"timestamp": 1672531260000
},
"raw_data_hex": "0a02ab911220f5d4c3b2a240a0c9e2f6e30f5a68081112620a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e45786368616e6765496e6a656374436f6e747261637412280a154c7971797a56474c5631737266b7dd4afc8eagg615349220831310313530303031"
}Adds liquidity to an existing exchange trading pair on the TRON decentralized exchange
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangeinject \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": 500000000000,
"visible": true
}
'{
"txID": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": "500000000000"
},
"type_url": "type.googleapis.com/protocol.ExchangeInjectContract"
},
"type": "ExchangeInjectContract"
}
],
"ref_block_bytes": "ab91",
"ref_block_hash": "f5d4c3b2a2",
"expiration": 1672531320000,
"timestamp": 1672531260000
},
"raw_data_hex": "0a02ab911220f5d4c3b2a240a0c9e2f6e30f5a68081112620a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e45786368616e6765496e6a656374436f6e747261637412280a154c7971797a56474c5631737266b7dd4afc8eagg615349220831310313530303031"
}owner_address — the address providing liquidity (base58 with visible: true, or hex with visible: false).exchange_id — unique identifier of the exchange pair to add liquidity to.token_id — TRC10 token ID; use _ to denote TRX.quant — integer amount to add (token base units; if TRX, specify in sun).permission_id — optional permission ID for multi‑signature accounts.txID — unique transaction identifierraw_data — raw transaction data including contract detailsraw_data_hex — hexadecimal representation of raw transaction datawallet/exchangeinject method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangeinject' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": 500000000000,
"visible": true
}'
token_id: "_"), provide quant in sun (1 TRX = 1,000,000 sun).The address providing liquidity to the exchange pair
Unique identifier of the exchange pair to add liquidity to
Token ID being added to the liquidity pool. Use '_' to denote TRX.
Amount to add as an integer (token base units; if TRX, specify in sun)
Optional permission ID for multi-signature accounts
Whether to return human-readable addresses
Was this page helpful?