curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangecreate \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000",
"visible": true
}'
{
"txID": "f7d5c2e8a1b9f3d4c5e6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000"
},
"type_url": "type.googleapis.com/protocol.ExchangeCreateContract"
},
"type": "ExchangeCreateContract"
}
],
"ref_block_bytes": "ab90",
"ref_block_hash": "f5d4c3b2a1",
"expiration": 1672531260000,
"timestamp": 1672531200000
},
"raw_data_hex": "0a02ab901220f5d4c3b2a140e0b8e2f6e30f5a68081112620a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e45786368616e6765437265617465436f6e747261637412280a154c7971797a56474c5631737266b7dd4afc8eagg61534522083131306b30303131"
}
Creates a new trading pair on the TRON decentralized exchange with initial liquidity provision
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangecreate \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000",
"visible": true
}'
{
"txID": "f7d5c2e8a1b9f3d4c5e6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000"
},
"type_url": "type.googleapis.com/protocol.ExchangeCreateContract"
},
"type": "ExchangeCreateContract"
}
],
"ref_block_bytes": "ab90",
"ref_block_hash": "f5d4c3b2a1",
"expiration": 1672531260000,
"timestamp": 1672531200000
},
"raw_data_hex": "0a02ab901220f5d4c3b2a140e0b8e2f6e30f5a68081112620a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e45786368616e6765437265617465436f6e747261637412280a154c7971797a56474c5631737266b7dd4afc8eagg61534522083131306b30303131"
}
owner_address
— the address that will own and control the exchange pairfirst_token_id
— token ID of the first token in the trading pairfirst_token_balance
— initial balance to provide for the first tokensecond_token_id
— token ID of the second token in the trading pairsecond_token_balance
— initial balance to provide for the second tokenpermission_id
— optional permission ID for multi-signature accountstxID
— unique transaction identifierraw_data
— raw transaction data including contract detailsraw_data_hex
— hexadecimal representation of raw transaction datawallet/exchangecreate
method is used for:
Successful response with transaction details
The response is of type object
.
Was this page helpful?