Service Node

REST API reference for the Pantos Service Node.

Transfer

Endpoint for submitting a token transfer request.

post
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
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

Endpoint that returns the status of a transfer.

get
Path parameters
Responses
200
Object containing the status of a transfer with the given task ID
application/json
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

Endpoint that returns a list of bids for a given source and destination blockchain.

get
Query parameters
source_blockchaininteger · enumRequired

Numeric ID of the supported Blockchain ID

Possible values:
destination_blockchaininteger · enumRequired

Numeric ID of the supported Blockchain ID

Possible values:
Responses
200
List of bids for a given source and destination blockchain
application/json
get
GET /bids HTTP/1.1
Host: sn1.testnet.pantos.io
Accept: */*
{
  "execution_time": 1,
  "valid_until": 1,
  "fee": 1,
  "signature": "text"
}

Last updated