curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/marketsellasset \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"sell_token_id": "1000006",
"sell_token_quantity": 1000000,
"buy_token_id": "1002000",
"buy_token_quantity": 1000000,
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/marketsellasset \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"sell_token_id": "1000006",
"sell_token_quantity": 1000000,
"buy_token_id": "1002000",
"buy_token_quantity": 1000000,
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}owner_address — address of the account placing the buy order (base58 with visible: true, or hex with visible: false).sell_token_id — TRC10 token ID of the asset offered, as a numeric string.sell_token_quantity — integer amount to offer (token base units; if TRX, sun).buy_token_id — TRC10 token ID of the asset to purchase, as a numeric string.buy_token_quantity — integer desired amount to purchase (token base units; if TRX, sun).visible — boolean indicating whether addresses are in visible formattxID — unique transaction ID for the buy order transactionraw_data — raw transaction data containing:
contract — array with market buy order contract detailsref_block_bytes — reference block bytes for transaction validationref_block_hash — hash of the reference blockexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — complete transaction data encoded in hexadecimal formatwallet/marketbuyasset method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/marketbuyasset' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"sell_token_id": "1000006",
"sell_token_quantity": 100000000,
"buy_token_id": "1002000",
"buy_token_quantity": 1000000,
"visible": true
}'
exchangecreate, exchangeinject, exchangetransaction, and exchangewithdraw.Account address placing the sell order
Token ID being sold (empty string for TRX)
Quantity of tokens to sell (integer in token base units; if TRX, sun)
Token ID desired in exchange (empty string for TRX)
Quantity of tokens desired in exchange (integer in token base units; if TRX, sun)
When true, addresses are base58; when false, hex.
Was this page helpful?