๐Ÿ‘‹
Welcome to Stokn.io
  • ๐Ÿ‘‹Welcome to Stokn.io
  • Overview
    • ๐Ÿ’กWhat we do?
    • ๐Ÿš€Our Features
      • Wallet as a Service
      • Trading as a Service
      • Staking as a Service
      • Portfolio ESG Scoring
      • KYC, KYB, KYT
    • ๐Ÿ“ฑWhite Label Mobile App
  • USE CASES
    • ๐ŸฆFor NeoBanks, Fintechs, Asset Managers
    • ๐Ÿ‘จโ€๐Ÿ’ผFor Independant wealth managers
    • ๐Ÿ’ฐFor Crypto-Payments
  • HOW TO USE OUR API
  • ๐ŸŽฏOverview
  • ๐Ÿ“Step 1 - User Account Creation
  • ๐Ÿ”Step 2 - User KYC
  • โ„น๏ธStep 3 - User Account Information
  • ๐Ÿ’ตStep 4 - User Deposit & Withdrawal
  • ๐Ÿ”„Step 5 - Crypto conversion
  • ๐Ÿ”Step 6 - User Get Wallet Information
  • ๐Ÿ’ธStep 7 - Dollar Cost Average
  • ๐ŸŒฟStep 8 - Scoring ESG
Powered by GitBook
On this page

Step 4 - User Deposit & Withdrawal

PreviousStep 3 - User Account InformationNextStep 5 - Crypto conversion

Last updated 1 year ago

The User will need different deposit address according to the coin selected and the network.

1 - In order to realize a deposit,

The Trading Portfolio (PortfolioId) will be associated with an AccountId. This means that the crypto deposit, will automatically be credited to the Trading Portfolio, which is the main portfolio of the AccountId.

OAuth: client_auth

2 - To obtain the history of all the deposits of a given AccountId, you can use the following endpoint:

OAuth: client_auth

3 - Using the following endpoint, you can also consult the list of the blockchains network available on Stokn for deposit:

OAuth: client_auth

4 - Using the following endpoint, you can also consult the list of coins/tokens available on Stokn for deposit:

OAuth: client_auth

5 - This is the information that must be entered to make a withdrawal: account ID, asset, network, destination address.

OAuth: user_auth

๐Ÿ’ต

Get deposit on chain address

get
Authorizations
Path parameters
accountIdstringRequired
assetstringRequired
networkstringRequired
Responses
200
OK
*/*
get
GET /v1/wallet/deposit/{accountId}/{asset}/{network} HTTP/1.1
Host: 
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "coin": "text",
    "network": "text",
    "address": "text"
  },
  "errorCode": 1,
  "errorMessage": "text"
}

Get deposit history on chain

get
Authorizations
Path parameters
accountIdstringRequired
Responses
200
OK
*/*
get
GET /v1/wallet/deposit/{accountId}/history HTTP/1.1
Host: 
Accept: */*
200

OK

{
  "success": true,
  "data": [
    {
      "ts": "2025-05-13T09:48:36.368Z",
      "txId": "text",
      "coin": "text",
      "network": "text",
      "address": "text",
      "amount": 1
    }
  ],
  "errorCode": 1,
  "errorMessage": "text"
}

Get network of coins

get
Authorizations
Path parameters
slugstringRequired
Responses
200
OK
*/*
Responsestring
get
GET /v1/wallet/deposit/networks/all/{slug} HTTP/1.1
Host: 
Accept: */*
200

OK

text

Get available coins for deposit

get
Authorizations
Responses
200
OK
*/*
get
GET /v1/wallet/deposit/available-coins HTTP/1.1
Host: 
Accept: */*
200

OK

{
  "success": true,
  "data": [
    {
      "slug": "text",
      "name": "text",
      "logoUrl": "text",
      "availableNetworks": [
        "text"
      ]
    }
  ],
  "errorCode": 1,
  "errorMessage": "text"
}
  • GETGet deposit on chain address
  • GETGet deposit history on chain
  • GETGet network of coins
  • GETGet available coins for deposit
  • POST/v1/wallet/withdraw
post
Authorizations
Body
accountIdstringOptional
networkstring ยท enumOptionalPossible values:
addressstringOptional
assetstringOptional
amountnumberOptional
Responses
200
OK
*/*
post
POST /v1/wallet/withdraw HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "accountId": "text",
  "network": "ETH",
  "address": "text",
  "asset": "text",
  "amount": 1
}
200

OK

{
  "success": true,
  "data": {
    "accountId": "text",
    "amount": 1,
    "asset": "text",
    "network": "text",
    "address": "text",
    "success": true,
    "message": "text",
    "portfolioId": "text",
    "operationId": "text"
  },
  "errorCode": 1,
  "errorMessage": "text"
}