⚙️
1Konto v1.0 API Docs
  • Welcome!
  • Reference
    • API Reference
    • Service
      • Service Information
      • Service Time
    • Authentication
      • Login and Authentication
    • Market Data
      • Get Top of Book
      • Get Order Book
    • Accounting
      • Get Account
      • Get Account Credit
      • Get Transactions
      • Transfers Instructions
        • Get Deposit Instructions
        • Get Withdraw Instructions
      • Withdraw Requests
        • Request Withdraw - Fiat
        • Request Withdraw - Blockchain
        • Querying for Withdraw Requests
    • Orders
      • Available Asset Pairs
      • Request Indicative Price
      • Market Order
      • Limit Order
      • RFQ - Request for Quote
        • Request Quote
        • Accept Quote
      • Querying for Orders
      • Get Order
Powered by GitBook
On this page
  • Request Withdraw for Digital Asset (Blockchain)
  • Example
  1. Reference
  2. Accounting
  3. Withdraw Requests

Request Withdraw - Blockchain

requires auth

Request Withdraw for Digital Asset (Blockchain)

Endpoint to request a withdraw from your 1KPrime account to your external whitelisted wallets.

POST /api/v1/accounting/account/{accountId}/request/withdraw/blockchain

Path Parameters:

Path
Type
Description

accountId*

string

your account ID

Body Parameters:

Body
Type
Description

amount *

object

Asset amount you want to withdraw

network

string

The Blockchain network of your wallet

address

string

Your wallet address

instructions

array of string

Any additional instructions

Example

POST /api/v1/accounting/account/myAccountID/request/withdraw/blockchain
// Request body
{
    "amount": "1 BTC",
    "network": "bitcoin",
    "address": "myWalletAddress",
    "instructions": [
        "any aditional instructions"
    ]
}
// Successful Response body 
{
    "withdrawRequestId": "oiJ8s7oh8EqFwwnkZViCGg",
    "requestStatus": "pending",
    "status": "ok",
    "httpStatusCode": 200
}
// Error Response body
{
    "errors": [
        "Insufficient Funds: Requested 1100 BTC but only 999 BTC is available"
    ],
    "status": "badRequest",
    "httpStatusCode": 400
}
// Error Response body
{
    "errors": [
        "ValidationFailed: Amount: must be positive. Asset: required"
    ],
    "status": "badRequest",
    "httpStatusCode": 400
}
PreviousRequest Withdraw - FiatNextQuerying for Withdraw Requests

Last updated 1 year ago

Page cover image