⚡ We welcome businesses to test our enterprise-grade service

Method: POST /wallet/exchangetransaction

dropdown

方法 REST /wallet/exchangetransaction 例如 Tron (TRX)

POST /wallet/exchangetransaction

Method not allowed

参与交换对的交易

Parameters

owner_address -

细绳

交易者的钱包地址,以十六进制字符串格式。 这个钱包包含您希望出售的令牌,以获取其他令牌。

exchange_id -

享受

事务对ID

token_id -

细绳

以六角形格式出售的令牌的ID。 例如,如果您想将TRX交换为另一个令牌,则“ 5F”的TRX ID在此参数中。

quant -

享受

卖出的代币数量。 如果出售TRX,则需要以阳光单位表达。

expected -

享受

预期购买的令牌数量。

permission_id -

享受

可选,用于多签名

visible -

布尔

可选,地址是否为base58格式

Request

curl --location --request POST 'https://trx.getblock.io/wallet/exchangetransaction' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}