Technical Documentation
User Docs
  • Pantos Docs
    • 📃User Docs
    • 💻Technical Docs
  • Getting Started
    • Introduction
    • Token Transfer
  • Architecture
    • On-Chain Components
      • Read functions
    • Off-Chain Components
  • General
    • Supported Chains
    • Testnet Addresses
    • PantosHub ABI
    • PantosToken ABI
    • Example Token
    • Deploying Token
    • Migrate Token
    • Service Node
    • Compatibility
  • REST API Reference
    • Service Node
  • Feedback
    • Report a bug
    • Share feedback
  • Resources
    • Bug bounty program
Powered by GitBook
On this page
  1. REST API Reference

Service Node

REST API reference for the Pantos Service Node.

PreviousCompatibilityNextBug bounty program

Last updated 5 months ago

Transfer

Transfer Status

Bids

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
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"
}

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
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"
}
  • Transfer
  • POSTEndpoint for submitting a token transfer request.
  • Transfer Status
  • GETEndpoint that returns the status of a transfer.
  • Bids
  • GETEndpoint that returns a list of bids for a given source and destination blockchain.

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
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"
}