Logo

Affiliate Docs

Limited API for affiliate developers

API versionv0.0.1Last refreshed2025-08-20T21:42:11.302Z UTC

Base URL

https://api.silkbyte.io

Authorization

Some endpoints require authorization. Include the following header:

HeaderValue
AuthorizationBearer YOUR_API_KEY
GET/currencies

Get Currencies

This API endpoint returns the paginated list of available currencies.

Parameters

NameInTypeRequiredDescription
pagequeryintegeroptionalPage number
sizequeryintegeroptionalNumber of items per page
searchquerystring | nulloptionalSearch query for currency code or name
with_networksquerybooleanoptionalInclude network details if True

Sample request

curl -X GET \
https://api.silkbyte.io/currencies?page=%7Bpage%7D&size=%7Bsize%7D&search=%7Bsearch%7D&with_networks=%7Bwith_networks%7D

Responses

Status 200: Successful Response
application/json
Model: ListCurrenciesResponse
Schema
{
  "properties": {
    "data": {
      "items": {
        "$ref": "#/components/schemas/CurrencyResponse"
      },
      "type": "array",
      "title": "Data"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    }
  },
  "type": "object",
  "required": [
    "data",
    "count"
  ],
  "title": "ListCurrenciesResponse"
}
Example
{
  "data": [
    {
      "code": "string",
      "name": "string",
      "icon": "string",
      "notes": "string",
      "networks": [
        null
      ]
    }
  ],
  "count": 0
}
Status 422: Validation Error
application/json
Model: HTTPValidationError
Schema
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
Example
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET/currencies/{code}/networks

Get Currency Networks

This API endpoint returns networks by currency code.

Parameters

NameInTypeRequiredDescription
codepathstringrequired

Sample request

curl -X GET \
https://api.silkbyte.io/currencies/%7Bcode%7D/networks

Responses

Status 200: Successful Response
application/json
Schema
{
  "type": "array",
  "items": {
    "$ref": "#/components/schemas/CurrencyNetworkResponse"
  },
  "title": "Response Get Currency Networks Currencies  Code  Networks Get"
}
Example
[
  {
    "network": "string",
    "name": "string",
    "shortName": "string",
    "addresRegex": "string",
    "notes": "string",
    "isDefault": false,
    "decimal": 0,
    "icon": "string",
    "blockExplorer": "string",
    "depositMinAmount": 0,
    "memoNeeded": false,
    "memoName": "string",
    "memoRegex": "string",
    "precision": 0,
    "contract": "string"
  }
]
Status 422: Validation Error
application/json
Model: HTTPValidationError
Schema
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
Example
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET/rate

Get Rate

This API endpoint returns amount that user will get, current rate, minimal payment amount required to make an exchange.

Parameters

NameInTypeRequiredDescription
coin_fromquerystringrequiredCurrency to exchange from, e.g. 'ETH'
coin_toquerystringrequiredCurrency to exchange to, e.g. 'USDT'
amountquerynumberrequiredAmount of currency to send
network_fromquerystring | nulloptionalNetwork for coin_from (optional)
network_toquerystring | nulloptionalNetwork for coin_to (optional)
withdrawal_amountquerynumber | nulloptionalOptional expected withdrawal amount
rate_typequerystringoptionalType of coin rate: 'fixed' or 'float'
ref_idquerystring | nulloptionalReferral ID
Authorizationheaderstring | nulloptionalBearer auth token

Sample request

curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \n+https://api.silkbyte.io/rate?coin_from=%7Bcoin_from%7D&coin_to=%7Bcoin_to%7D&amount=%7Bamount%7D&network_from=%7Bnetwork_from%7D&network_to=%7Bnetwork_to%7D&withdrawal_amount=%7Bwithdrawal_amount%7D&rate_type=%7Brate_type%7D&ref_id=%7Bref_id%7D

Responses

Status 200: Successful Response
application/json
Model: RateResponse
Schema
{
  "properties": {
    "fromAmount": {
      "type": "number",
      "title": "Fromamount"
    },
    "toAmount": {
      "type": "number",
      "title": "Toamount"
    },
    "rate": {
      "type": "number",
      "title": "Rate"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message"
    },
    "minAmount": {
      "type": "number",
      "title": "Minamount"
    },
    "withdrawMin": {
      "type": "number",
      "title": "Withdrawmin"
    },
    "maxAmount": {
      "type": "number",
      "title": "Maxamount"
    }
  },
  "type": "object",
  "required": [
    "fromAmount",
    "toAmount",
    "rate",
    "minAmount",
    "withdrawMin",
    "maxAmount"
  ],
  "title": "RateResponse"
}
Example
{
  "fromAmount": 0,
  "toAmount": 0,
  "rate": 0,
  "message": "string",
  "minAmount": 0,
  "withdrawMin": 0,
  "maxAmount": 0
}
Status 422: Validation Error
application/json
Model: HTTPValidationError
Schema
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
Example
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET/transaction/{txid}

Get Transaction

This API endpoint return a transaction by specific txid.

Parameters

NameInTypeRequiredDescription
txidpathstringrequired

Sample request

curl -X GET \
https://api.silkbyte.io/transaction/%7Btxid%7D

Responses

Status 200: Successful Response
application/json
Model: TransactionResponse
Schema
{
  "properties": {
    "uid": {
      "type": "string",
      "title": "Uid"
    },
    "amount": {
      "type": "number",
      "title": "Amount"
    },
    "amountTo": {
      "type": "number",
      "title": "Amountto"
    },
    "coinFrom": {
      "$ref": "#/components/schemas/TransactionCoin"
    },
    "coinTo": {
      "$ref": "#/components/schemas/TransactionCoin"
    },
    "comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Comment"
    },
    "createdAt": {
      "type": "string",
      "title": "Createdat"
    },
    "depositAddress": {
      "type": "string",
      "title": "Depositaddress"
    },
    "depositExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Depositextraid"
    },
    "withdrawalAddress": {
      "type": "string",
      "title": "Withdrawaladdress"
    },
    "withdrawalExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Withdrawalextraid"
    },
    "hashIn": {
      "$ref": "#/components/schemas/TransactionHash"
    },
    "hashOut": {
      "$ref": "#/components/schemas/TransactionHash"
    },
    "rate": {
      "type": "number",
      "title": "Rate"
    },
    "rateType": {
      "type": "string",
      "title": "Ratetype"
    },
    "refundAddress": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refundaddress"
    },
    "refundExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refundextraid"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "imported": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Imported"
    }
  },
  "type": "object",
  "required": [
    "uid",
    "amount",
    "amountTo",
    "coinFrom",
    "coinTo",
    "createdAt",
    "depositAddress",
    "withdrawalAddress",
    "hashIn",
    "hashOut",
    "rate",
    "rateType",
    "status"
  ],
  "title": "TransactionResponse"
}
Example
{
  "uid": "string",
  "amount": 0,
  "amountTo": 0,
  "coinFrom": {
    "coinCode": "string",
    "coinName": "string",
    "network": "string",
    "networkName": "string",
    "networkShortName": "string",
    "icon": "string",
    "memoName": "string"
  },
  "coinTo": {
    "coinCode": "string",
    "coinName": "string",
    "network": "string",
    "networkName": "string",
    "networkShortName": "string",
    "icon": "string",
    "memoName": "string"
  },
  "comment": "string",
  "createdAt": "string",
  "depositAddress": "string",
  "depositExtraId": "string",
  "withdrawalAddress": "string",
  "withdrawalExtraId": "string",
  "hashIn": {
    "hash": "string",
    "link": "string"
  },
  "hashOut": {
    "hash": "string",
    "link": "string"
  },
  "rate": 0,
  "rateType": "string",
  "refundAddress": "string",
  "refundExtraId": "string",
  "status": "string",
  "imported": false
}
Status 422: Validation Error
application/json
Model: HTTPValidationError
Schema
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
Example
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST/transaction

Create Transaction

This API endpoint creates a transaction, generates an address for sending funds and returns transaction attributes.

Parameters

NameInTypeRequiredDescription
coin_fromquerystringrequiredSource coin code
network_fromquerystringrequiredSource network
coin_toquerystringrequiredDestination coin code
network_toquerystringrequiredDestination network
amountqueryinteger | numberrequiredAmount to exchange
withdrawal_amountquerynumber | integer | nulloptionalWithdrawal amount
withdrawal_addressquerystringrequiredWithdrawal address
withdrawal_extra_idquerystring | nulloptionalExtra ID for withdrawal
rate_typequerystringoptionalRate type (fixed/float)
refund_addressquerystring | nulloptionalRefund address
refund_extra_idquerystring | nulloptionalExtra ID for refund
ref_idquerystring | nulloptionalReferral ID
Authorizationheaderstring | nulloptionalBearer auth token

Sample request

curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \n+https://api.silkbyte.io/transaction?coin_from=%7Bcoin_from%7D&network_from=%7Bnetwork_from%7D&coin_to=%7Bcoin_to%7D&network_to=%7Bnetwork_to%7D&amount=%7Bamount%7D&withdrawal_amount=%7Bwithdrawal_amount%7D&withdrawal_address=%7Bwithdrawal_address%7D&withdrawal_extra_id=%7Bwithdrawal_extra_id%7D&rate_type=%7Brate_type%7D&refund_address=%7Brefund_address%7D&refund_extra_id=%7Brefund_extra_id%7D&ref_id=%7Bref_id%7D

Responses

Status 200: Successful Response
application/json
Model: TransactionResponse
Schema
{
  "properties": {
    "uid": {
      "type": "string",
      "title": "Uid"
    },
    "amount": {
      "type": "number",
      "title": "Amount"
    },
    "amountTo": {
      "type": "number",
      "title": "Amountto"
    },
    "coinFrom": {
      "$ref": "#/components/schemas/TransactionCoin"
    },
    "coinTo": {
      "$ref": "#/components/schemas/TransactionCoin"
    },
    "comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Comment"
    },
    "createdAt": {
      "type": "string",
      "title": "Createdat"
    },
    "depositAddress": {
      "type": "string",
      "title": "Depositaddress"
    },
    "depositExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Depositextraid"
    },
    "withdrawalAddress": {
      "type": "string",
      "title": "Withdrawaladdress"
    },
    "withdrawalExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Withdrawalextraid"
    },
    "hashIn": {
      "$ref": "#/components/schemas/TransactionHash"
    },
    "hashOut": {
      "$ref": "#/components/schemas/TransactionHash"
    },
    "rate": {
      "type": "number",
      "title": "Rate"
    },
    "rateType": {
      "type": "string",
      "title": "Ratetype"
    },
    "refundAddress": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refundaddress"
    },
    "refundExtraId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refundextraid"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "imported": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Imported"
    }
  },
  "type": "object",
  "required": [
    "uid",
    "amount",
    "amountTo",
    "coinFrom",
    "coinTo",
    "createdAt",
    "depositAddress",
    "withdrawalAddress",
    "hashIn",
    "hashOut",
    "rate",
    "rateType",
    "status"
  ],
  "title": "TransactionResponse"
}
Example
{
  "uid": "string",
  "amount": 0,
  "amountTo": 0,
  "coinFrom": {
    "coinCode": "string",
    "coinName": "string",
    "network": "string",
    "networkName": "string",
    "networkShortName": "string",
    "icon": "string",
    "memoName": "string"
  },
  "coinTo": {
    "coinCode": "string",
    "coinName": "string",
    "network": "string",
    "networkName": "string",
    "networkShortName": "string",
    "icon": "string",
    "memoName": "string"
  },
  "comment": "string",
  "createdAt": "string",
  "depositAddress": "string",
  "depositExtraId": "string",
  "withdrawalAddress": "string",
  "withdrawalExtraId": "string",
  "hashIn": {
    "hash": "string",
    "link": "string"
  },
  "hashOut": {
    "hash": "string",
    "link": "string"
  },
  "rate": 0,
  "rateType": "string",
  "refundAddress": "string",
  "refundExtraId": "string",
  "status": "string",
  "imported": false
}
Status 422: Validation Error
application/json
Model: HTTPValidationError
Schema
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
Example
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}