| Name | 설명 | 타입 |
|---|---|---|
| Authorization* | 액세스 토큰 | string |
| 필드 | 설명 | 타입 |
|---|---|---|
| signerAddress* | 서명자 주소 | string |
| swapOrder | object | |
| ↳ amountBuyerFee* | 구매자 수수료 | number |
| ↳ amountBuyerTax* | 구매자 세금 | number |
| ↳ amountDT* | DT 양 | number |
| ↳ amountST* | ST 양 | number |
| ↳ amountSellerFee* | 판매자 수수료 | number |
| ↳ amountSellerTax* | 판매자 세금 | number |
| ↳ executeId* | 유통사 체결 ID | number |
| ↳ feeTaxCollector* | 수수료, 세금을 수집할 주소 | string |
| ↳ holderDT* | 홀더 DT 주소 | string |
| ↳ holderST* | 홀더 ST 주소 | string |
| ↳ partitionName* | 파티션 이름 | string |
| ↳ stockCd* | 종목 코드(ST 토큰 심볼) | string |
| 필드 | 설명 | 타입 |
|---|---|---|
| executeId* | 체결 ID | string |
| txData* | 트랜잭션 데이터 | string |
| tokenSymbol* | DT 토큰 심볼 | string |
| 코드 | 상태 | 메시지 | 설명 |
|---|---|---|---|
| SC0003 | 400 | 아직 배포되지 않은 토큰입니다. | |
| SC0002 | 404 | 토큰을 찾을 수 없습니다. | 올바른 tokenSymbol이 존재하지 않습니다. 토큰 심볼을 확인해주세요. |
curl --location '/main/v1/swap/dt/create/tx/data' \
--header 'Authorization: Bearer access-token' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"signerAddress" : "0x627306090abaB3A6e1400e9345bC60c78a8BEf57",
"swapOrder" : {
"executeId" : 1,
"stockCd" : "BCG",
"partitionName" : "유통",
"holderDT" : "0xCa127f076c9637Deea7F62dc22ca6318EAcb6Ac1",
"holderST" : "0x0cC4fEE4FDB7B0e89036789332C23eD6774b7d02",
"amountDT" : 10000,
"amountST" : 1,
"amountBuyerFee" : 1,
"amountSellerFee" : 1,
"amountBuyerTax" : 1,
"amountSellerTax" : 1,
"feeTaxCollector" : "0x25125923c3cb8f0B1C2606BfcBF44dEdCd220a4E"
}
}'{
"executeId" : "EP7SSNRJSV-1",
"txData" : "0x57726584775b664a5e8c7ebcf84cd51a265ff60ea646ef5802ddd972a410f92d",
"tokenSymbol" : "DT-EP7SSNRJSV"
}