Service Node
REST API reference for the Pantos Service Node.
Transfer
Body
source_blockchain_idintegerRequired
destination_blockchain_idinteger · enumRequiredPossible values:
sender_addressstringRequired
recipient_addressstringRequired
source_token_addressstringRequired
destination_token_addressstringRequired
valid_untilintegerRequired
amountintegerRequired
nonceintegerRequired
signaturestringRequired
time_receivedintegerRequired
Responses
200
Transfer request accepted
application/json
406
Transfer request no accepted
application/json
409
Sender nonce from transfer request is not unique
application/json
500
Internal server error
post
POST /transfer HTTP/1.1
Host: sn1.testnet.pantos.io
Content-Type: application/json
Accept: */*
Content-Length: 316
{
"source_blockchain_id": 1,
"destination_blockchain_id": 0,
"sender_address": "text",
"recipient_address": "text",
"source_token_address": "text",
"destination_token_address": "text",
"valid_until": 1,
"amount": 1,
"nonce": 1,
"signature": "text",
"bid": {
"execution_time": 1,
"valid_until": 1,
"fee": 1,
"signature": "text"
},
"time_received": 1
}
{
"task_id": "text"
}
Transfer Status
Path parameters
Responses
200
Object containing the status of a transfer with the given task ID
application/json
404
not found
application/json
500
internal server error
get
GET /transfer/{task_id}/status HTTP/1.1
Host: sn1.testnet.pantos.io
Accept: */*
{
"task_id": "text",
"source_blockchain_id": null,
"destination_blockchain_id": null,
"sender_address": "text",
"recipient_address": "text",
"source_token_address": "text",
"destination_token_address": "text",
"amount": 1,
"fee": 1,
"status": "text",
"transfer_id": "text",
"transaction_id": "text"
}
Bids
Query parameters
source_blockchaininteger · enumRequiredPossible values:
Numeric ID of the supported Blockchain ID
destination_blockchaininteger · enumRequiredPossible values:
Numeric ID of the supported Blockchain ID
Responses
200
List of bids for a given source and destination blockchain
application/json
400
bad request
application/json
500
internal server error
get
GET /bids HTTP/1.1
Host: sn1.testnet.pantos.io
Accept: */*
{
"execution_time": 1,
"valid_until": 1,
"fee": 1,
"signature": "text"
}
Last updated