/api/v1/router/swap/submit
Input
Description
Examples
signedTransactions
List if signed transactions by user
Output
Description
Examples
transactionId
Transaction signature
slot
Transaction slot
poolId
Address of the pool that used for the swap
platform
Pool's platform
tokenIn
Token in information
tokenOut
Token out information
tokenInAmount
Raw token in amount
tokenOutAmount
Raw token out amount
createdAt
Unix timestamp
Router automatically will try to confirm your transaction
post
Body
signedTransactionsstring[]Optional
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
post
/api/v1/router/swap/submitPOST /api/v1/router/swap/submit HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"signedTransactions": [
"text"
]
}{
"results": [
{
"transactionId": "text",
"slot": "text",
"poolId": "text",
"platform": "PLATFORM_UNSPECIFIED",
"tokenIn": {
"address": "text",
"name": "text",
"symbol": "text",
"decimals": 1,
"isStable": true
},
"tokenOut": {
"address": "text",
"name": "text",
"symbol": "text",
"decimals": 1,
"isStable": true
},
"tokenInAmount": "text",
"tokenOutAmount": "text",
"createdAt": "text"
}
]
}Last updated

