LogoLogo
  • Home
  • Overview
  • Getting Started
  • Prompt Guide
  • API Reference
    • Authentication
      • Web3
      • Google OAuth
    • Account
    • Escrow
    • File upload
    • Wallet
Powered by GitBook
On this page
Export as PDF
  1. API Reference

Wallet

This section details resources that pertains to the wallet feature, retrieving wallet information, transaction details etc. When a user signs up on the chainsite, wallets are auto-generated for said

PreviousFile upload

Last updated 7 days ago

Get User Wallet Summary
Get Coin Balance Details
Get Single Wallet Detail
Export Wallet Private Key
Get Cryptocurrency Exchange Rates
Create Cryptocurrency Withdrawal
List Withdrawal History
List Transaction History
Get Transaction Details

Get User Wallet Summary

get

Retrieves the user's wallet information, including total balance and details of all cryptocurrency holdings.

Request

No request body, query and path parameters for this endpoint

Response

The response contains the following structure:

  • status: Indicates if the request was successful

  • message: A brief status message

  • data: Contains the wallet information with the following properties:

    • totalBalance: The cumulative balance of all wallets in USD

    • value: The total value in USD (appears to be a duplicate of totalBalance)

    • wallets: An array of wallet objects representing different cryptocurrencies

Each wallet object in the array contains:

  • id: Unique identifier for the wallet/cryptocurrency

  • amount: The quantity of cryptocurrency held, formatted as a string with decimal precision

  • usdValue: The value of the cryptocurrency in USD

  • address: The blockchain address associated with the wallet

  • coin: The ticker symbol of the cryptocurrency

  • icon: URL to the cryptocurrency's icon image

If no cryptocurrency is held, the amount will be "0.000000" and the usdValue will be 0.

Authorizations
Responses
200
OK
application/json
Responseobject
get
GET /v1/wallet HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "OK",
  "data": {
    "totalBalance": 0,
    "value": 0,
    "wallets": [
      {
        "id": "coq-inu",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "COQ",
        "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711017420048_coqinu.png"
      },
      {
        "id": "joe",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "JOE",
        "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711033239974_trader_joe.webp"
      },
      {
        "id": "benqi",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "QI",
        "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1710951727857_BENQI_logo.jpeg"
      },
      {
        "id": "avalaunch",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "XAVA",
        "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711016878037_avalaunch.webp"
      },
      {
        "id": "gogopool",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "GGP",
        "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711015451773_gogopool.png"
      },
      {
        "id": "tech",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "TECH",
        "icon": "https://s3.amazonaws.com/chainsite-dev-storage/1715205847967_tech_coin.png"
      },
      {
        "id": "usdc",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "USDC",
        "icon": "https://chainsite-dev-storage.s3.amazonaws.com/icons/usdc.svg"
      },
      {
        "id": "avax",
        "amount": "0.000000",
        "usdValue": 0,
        "address": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac",
        "coin": "AVAX",
        "icon": "https://chainsite-dev-storage.s3.amazonaws.com/icons/avax.svg"
      }
    ]
  }
}

Get Coin Balance Details

get

This endpoint retrieves details of a specific coin from the user's wallet.

Request

  • Method: GET

  • URL: {{baseUrl}}/v1/wallet/coin/:coin

Response

Upon a successful request, the server will respond with a status code of 200 and a JSON object containing the following properties:

  • status (string): Indicates the status of the response.

  • message (string): A message from the server.

  • data (object): Contains the details of the coin:

    • _id (string): The unique identifier of the coin.

    • coin (string): The name of the coin.

    • amount (number): The amount of the coin in the wallet.

    • usdValue (number): The value of the coin in USD.

    • icon (string): URL to the icon of the coin.

Authorizations
Path parameters
coinstringRequiredExample: usdc
Responses
200
OK
application/json
Responseobject
get
GET /v1/wallet/coin/{coin} HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "OK",
  "data": {
    "_id": "66fd25f67efb4b67bd5d2752",
    "coin": "avax",
    "amount": 0,
    "usdValue": 0,
    "icon": "https://chainsite-dev-storage.s3.amazonaws.com/icons/usdc.svg"
  }
}

Get Currency Exchange Rates

get

This endpoint makes an HTTP GET request to retrieve exchange transaction data.

Request

This request does not require a request body.

Response

  • status (string): The status of the response.

  • message (string): A message related to the response status.

  • data (object): An object containing exchange transaction data with keys for various currencies such as usdc, avax, tech, gogopool, avalaunch, benqi, joe, and coq-inu.

    • usdc (number): The amount of USDC in the exchange transaction.

    • avax (number): The amount of AVAX in the exchange transaction.

    • tech (number): The amount of TECH in the exchange transaction.

    • gogopool (number): The amount of GOGOPOOL in the exchange transaction.

    • avalaunch (number): The amount of AVALAUNCH in the exchange transaction.

    • benqi (number): The amount of BENQI in the exchange transaction.

    • joe (number): The amount of JOE in the exchange transaction.

    • coq-inu (number): The amount of COQ-INU in the exchange transaction.

Authorizations
Responses
200
OK
application/json
Responseobject
get
GET /v1/transaction/exchange HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "OK",
  "data": {
    "usdc": 0.999946,
    "avax": 16.88,
    "tech": 0.00000431,
    "gogopool": 3.21,
    "avalaunch": 0.2591,
    "benqi": 0.00709541,
    "joe": 0.144433,
    "coq-inu": 4.52801e-7
  }
}

List Withdrawal History

get

This endpoint retrieves a list of withdrawal records.

Request

No request body is required for this endpoint.

Response

The response will be a JSON object with the following schema:

  • status (string): The status of the response.

  • message (string): Any additional message related to the response.

  • data (object): An object containing withdrawal data.

    • pages (number): The total number of pages.

    • page (number): The current page number.

    • total (number): The total number of withdrawal records.

    • data (array): An array of withdrawal records, each containing the following fields:

      • _id (string): The unique identifier of the withdrawal record.

      • owner (string): The owner of the withdrawal.

      • coin (string): The cryptocurrency used for the withdrawal.

      • address (string): The withdrawal address.

      • amount (number): The amount of cryptocurrency withdrawn.

      • usdValue (number): The value of the withdrawal in USD.

      • usdRate (number): The exchange rate of the cryptocurrency to USD.

      • status (string): The status of the withdrawal.

      • retryCount (number): The number of retry attempts.

      • errMsg (array): An array of error messages, if any.

      • createdAt (string): The timestamp of creation.

      • updatedAt (string): The timestamp of the last update.

Authorizations
Responses
200
OK
application/json
Responseobject
get
GET /v1/withdrawals/ HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "Success",
  "data": {
    "pages": 1,
    "page": 1,
    "total": 1,
    "data": [
      {
        "_id": "67fe6183218622d647bf8e34",
        "owner": "672c009d7b1921f2f97ae29a",
        "coin": "USDC",
        "address": "0x7efD1dB3668870391442581824b651996a113157",
        "amount": 10,
        "usdValue": 9.99872,
        "usdRate": 0.999872,
        "status": "pending",
        "retryCount": 0,
        "errMsg": [],
        "createdAt": "2025-04-15T13:39:15.894Z",
        "updatedAt": "2025-04-15T13:39:15.894Z",
        "__v": 0
      }
    ]
  }
}

List Transaction History

get

Request

Endpoint: GET {{baseUrl}}/v1/transaction

This endpoint retrieves a paginated list of transactions for the authenticated user.

Response

When the request is successful, the API will return a response with the following structure:

Status Field: The status field indicates the outcome of the request. A value of "success" confirms that the operation was executed without errors.

Message Field: The message field provides a human-readable description of the result. A value of "OK" indicates that the request completed successfully.

Data Object: The data field contains the main payload of the response with the following components:

Transactions Array: The transactions array contains a list of transaction objects, each representing a financial transaction in the system. Each transaction includes:

  • Transaction ID: The _id field provides a unique identifier for the transaction.

  • Owner: The owner field contains the user ID of the account owner associated with this transaction.

  • Amount: The amount field specifies the transaction amount in the cryptocurrency's native units.

  • Coin Information: The coin object provides comprehensive details about the cryptocurrency involved:

    • Basic identifiers: _id, name, symbol

    • Visual representation: icon URL to the cryptocurrency's logo

    • Technical details: reference, contractAddress, decimal (precision)

    • Blockchain information: rpcChainId

    • Status indicators: isToken, active, order

    • Timestamps: createdAt, updatedAt

  • Chain: The chain field contains the blockchain identifier on which the transaction occurred.

  • Currency: The currency field provides the lowercase reference name of the cryptocurrency.

  • USD Value: The usdValue field shows the equivalent value in US dollars at the time of the transaction.

  • Exchange Rate: The rate field indicates the conversion rate between the cryptocurrency and USD.

  • Description: The description field contains a human-readable explanation of the transaction purpose.

  • Transaction Type: The type field categorizes the transaction (e.g., "deposit", "withdrawal").

  • Method: The method field specifies how the transaction was processed (e.g., "payout", "sent").

  • Status: The status field indicates the current state of the transaction (e.g., "failed", "completed").

  • Fee Indicators: Boolean fields isFee, isPaktFee, and isExternal provide information about the fee structure.

  • Timestamps: The createdAt and updatedAt fields show when the transaction was created and last modified.

  • Transaction Data: The tx field may contain JSON-formatted transaction details including sender and receiver addresses.

  • Response Data: The responseData field may contain detailed information returned by the blockchain, including transaction hash, block information, gas usage, and contract interaction details.

Pagination Information: The response includes pagination details to help navigate through multiple pages of transactions:

  • Total Pages: The pages field indicates the total number of pages available.

  • Current Page: The page field shows which page of results is being displayed.

  • Page Size: The limit field specifies how many transactions are returned per page.

Authorizations
Responses
200
OK
application/json
Responseobject
get
GET /v1/transaction HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "OK",
  "data": {
    "transactions": [
      {
        "_id": "67bf39564befbd551cd70f8c",
        "owner": "66fb9a60304bdfdcc354d3b2",
        "amount": 25.359256,
        "coin": {
          "_id": "6712a2df6fee3985099a66b9",
          "name": "GOGOPOOL",
          "symbol": "GGP",
          "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711015451773_gogopool.png",
          "reference": "gogopool",
          "contractAddress": "0x2F512fD339E36Cf6744e311900c494dFD7B4B133",
          "decimal": "18",
          "isToken": true,
          "rpcChainId": "43113",
          "order": 13,
          "active": false,
          "createdAt": "2024-10-18T18:03:11.650Z",
          "updatedAt": "2025-03-06T12:37:03.982Z",
          "__v": 0
        },
        "chain": "66f19ae2d06462bd20202878",
        "currency": "gogopool",
        "usdValue": 299.99999848,
        "rate": "11.83",
        "description": "Email Testing with GGP",
        "type": "deposit",
        "method": "payout",
        "status": "failed",
        "isFee": false,
        "isPaktFee": false,
        "isExternal": false,
        "createdAt": "2025-02-26T15:55:03.076Z",
        "updatedAt": "2025-03-06T12:45:00.479Z",
        "responseData": ""
      },
      {
        "_id": "679cd7499c5f6ab830110154",
        "owner": "66fb9a60304bdfdcc354d3b2",
        "amount": 20.4,
        "coin": {
          "_id": "66f19ae3d06462bd20202884",
          "name": "USDC",
          "symbol": "USDC",
          "icon": "https://chainsite-storage.s3.amazonaws.com/icons/usdc.svg",
          "reference": "usdc",
          "contractAddress": "0x5425890298aed601595a70AB815c96711a31Bc65",
          "decimal": "6",
          "isToken": true,
          "rpcChainId": "43113",
          "active": true,
          "order": 1,
          "createdAt": "2024-09-23T16:44:19.669Z",
          "updatedAt": "2024-09-23T16:44:19.669Z",
          "__v": 0
        },
        "chain": "66f19ae2d06462bd20202878",
        "currency": "usdc",
        "usdValue": 20.4,
        "rate": "1",
        "description": "Withdrawal Processed for request with id = 679cd74879562c65ce1f9f4f.",
        "tx": "{\"senderAddress\":\"0x90dbe3a543c2c0f5b4dc699bba8c2fa56f51ad59\",\"receiverAddress\":\"0xfD3910aE7A247c1895796B46a3DFB92B303D9fd2\",\"asset\":\"USDC\",\"amount\":20.4}",
        "type": "withdrawal",
        "method": "sent",
        "status": "completed",
        "isFee": false,
        "isPaktFee": false,
        "createdAt": "2025-01-31T13:59:37.655Z",
        "updatedAt": "2025-01-31T13:59:46.346Z",
        "responseData": "{\"error\":false,\"statusCode\":200,\"message\":\"success\",\"data\":{\"tx\":{\"blockHash\":\"0x8ca4c2f5bbc1e6428d492e1e99f70e58878257ce11e5e9767c76e0b48d1a64d2\",\"blockNumber\":37849076,\"contractAddress\":null,\"cumulativeGasUsed\":45071,\"effectiveGasPrice\":1000000001,\"from\":\"0x90dbe3a543c2c0f5b4dc699bba8c2fa56f51ad59\",\"gasUsed\":45071,\"logs\":[{\"address\":\"0x5425890298aed601595a70AB815c96711a31Bc65\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",\"0x00000000000000000000000090dbe3a543c2c0f5b4dc699bba8c2fa56f51ad59\",\"0x000000000000000000000000fd3910ae7a247c1895796b46a3dfb92b303d9fd2\"],\"data\":\"0x0000000000000000000000000000000000000000000000000000000001374780\",\"blockNumber\":37849076,\"transactionHash\":\"0x1a963c675790dbebe1f9899e5603e973eb113aa127bb250a858f6043c4d0d030\",\"transactionIndex\":0,\"blockHash\":\"0x8ca4c2f5bbc1e6428d492e1e99f70e58878257ce11e5e9767c76e0b48d1a64d2\",\"logIndex\":0,\"removed\":false,\"id\":\"log_98be85a3\"}],\"logsBloom\":\"0x00000000000000000000000000000000004040000000000000000000000000000000000000000000000000000000000000008000000000008000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400010000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000040000000000000000000100000000000000000000000008000000000000000\",\"status\":true,\"to\":\"0x5425890298aed601595a70ab815c96711a31bc65\",\"transactionHash\":\"0x1a963c675790dbebe1f9899e5603e973eb113aa127bb250a858f6043c4d0d030\",\"transactionIndex\":0,\"type\":\"0x0\"},\"txHash\":\"0x1a963c675790dbebe1f9899e5603e973eb113aa127bb250a858f6043c4d0d030\"}}"
      }
    ],
    "pages": 1,
    "page": 1,
    "limit": 12
  }
}

Get Transaction Details

get

Retrieves detailed information about a specific transaction by its unique identifier.

Request

Path parameter

id : Unique transaction identifier

:Uni

Response

The response provides comprehensive information about a transaction, including its status, associated cryptocurrency details, financial values, and processing information.

The response begins with a status indicator that signifies the success or failure of the API call:

  • status: Indicates if the API request was successful (returns "success" or "error")

  • message: Provides a brief message about the result of the request (e.g., "OK")

Transaction Details

The core transaction data is contained in the data object with the following key information:

Basic Information:

  • Transaction ID: A unique identifier for the transaction (_id), formatted as a MongoDB ObjectId.

  • Owner ID: The unique identifier of the user who owns or initiated this transaction (owner).

  • Amount: The quantity of cryptocurrency involved in the transaction (amount), represented as a decimal number.

  • USD Value: The equivalent value in US dollars (usdValue), calculated based on the cryptocurrency's exchange rate.

  • Rate: The exchange rate used for the conversion to USD (rate), specified as a string to preserve decimal precision.

  • Description: A text description explaining the purpose of the transaction (description).

Transaction Classification:

  • Type: Categorizes the transaction as either "deposit" (incoming) or "withdrawal" (outgoing).

  • Method: Indicates how the transaction was executed (e.g., "payout", "transfer", "exchange").

  • Status: The current state of the transaction, which can be:

    • "pending": Transaction is being processed

    • "completed": Transaction has successfully completed

    • "failed": Transaction encountered an error and did not complete

    • "cancelled": Transaction was cancelled before completion

  • Fee Indicators: Boolean flags indicating whether the transaction represents a fee (isFee) or a platform fee (isPaktFee).

Cryptocurrency Information: The coin object contains detailed information about the cryptocurrency used in the transaction:

  • Coin ID: Unique identifier for the cryptocurrency (_id).

  • Name: Full name of the cryptocurrency (e.g., "GOGOPOOL").

  • Symbol: Trading symbol or ticker of the cryptocurrency (e.g., "GGP").

  • Icon: URL to the cryptocurrency's logo image.

  • Reference: A reference code or slug for the cryptocurrency.

  • Contract Address: The blockchain contract address for the cryptocurrency (for tokens).

  • Decimal: The number of decimal places used to represent the cryptocurrency (typically "18" for ERC-20 tokens).

  • Token Status: Whether the cryptocurrency is a token (isToken) rather than a native coin.

  • Chain ID: The RPC chain ID of the blockchain the token operates on (rpcChainId).

  • Order: Display priority or sorting order.

  • Active Status: Whether the cryptocurrency is actively supported.

  • Creation and Update Dates: Timestamps for when the cryptocurrency was added to the system and last updated.

Blockchain Information:

  • Chain: Reference to the blockchain network used for the transaction.

  • Currency: The lowercase reference code for the cryptocurrency.

Timestamps:

  • Created At: When the transaction was initially created in the system.

  • Updated At: When the transaction was last modified.

Authorizations
Path parameters
idstringRequiredExample: 67ba837c5ae86e39181696bd
Responses
200
OK
application/json
Responseobject
get
GET /v1/transaction/{id} HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "status": "success",
  "message": "OK",
  "data": {
    "_id": "67ba837c5ae86e39181696bd",
    "owner": "66fb9a60304bdfdcc354d3b2",
    "amount": 25.359256,
    "coin": {
      "_id": "6712a2df6fee3985099a66b9",
      "name": "GOGOPOOL",
      "symbol": "GGP",
      "icon": "https://chainsite-dev-storage.s3.us-east-1.amazonaws.com/1711015451773_gogopool.png",
      "reference": "gogopool",
      "contractAddress": "0x2F512fD339E36Cf6744e311900c494dFD7B4B133",
      "decimal": "18",
      "isToken": true,
      "rpcChainId": "43113",
      "order": 13,
      "active": false,
      "createdAt": "2024-10-18T18:03:11.650Z",
      "updatedAt": "2025-03-06T12:37:03.982Z",
      "__v": 0
    },
    "chain": "66f19ae2d06462bd20202878",
    "currency": "gogopool",
    "usdValue": 299.99999848,
    "rate": "11.83",
    "description": "Email Testing with GGP",
    "type": "deposit",
    "method": "payout",
    "status": "failed",
    "isFee": false,
    "isPaktFee": false,
    "createdAt": "2025-02-23T02:10:04.996Z",
    "updatedAt": "2025-02-25T20:00:01.708Z",
    "__v": 0,
    "responseData": "{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{\"error\":true,\"statusCode\":400,\"message\":\"error\",\"data\":{\"error\":{\"data\":\"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000\"}},\"oldData\":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}"
  }
}
  • GETGet User Wallet Summary
  • GETGet Coin Balance Details
  • POSTExport Wallet Private Key
  • GETGet Currency Exchange Rates
  • POSTCreate Cryptocurrency Withdrawal
  • GETList Withdrawal History
  • GETList Transaction History
  • GETGet Transaction Details

Export Wallet Private Key

post

This endpoint allows you to export the secret key associated with a wallet.

Request

  • code (string) - The verification code for exporting the secret key.

  • password (string) - The password associated with the wallet.

Response

  • status (string) - The status of the response.

  • message (string) - A message related to the response.

  • data (object)

    • secretKey (string) - The exported secret key.

    • walletAddress (string) - The wallet address associated with the secret key.

Authorizations
Body
objectOptionalExample: {"code":"993997","password":"1234567890@Abcde"}
Responses
200
OK
application/json
Responseobject
post
POST /v1/wallet/export-secret-key HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "code": "993997",
  "password": "1234567890@Abcde"
}
200

OK

{
  "status": "success",
  "message": "ok",
  "data": {
    "secretKey": "49c2af9def839686e3e867b05a92c5b2d401b52b1241bb1ad71d5383e566549f",
    "walletAddress": "0x064d2dae4e5e789f80a7968a2b58f0a1684203ac"
  }
}

Create Cryptocurrency Withdrawal

post

This endpoint allows the user to initiate a withdrawal of a specified amount of a particular coin to a given address.

Request

  • amount (number): The amount of the coin to be withdrawn.

  • coin (string): The type of coin to be withdrawn.

  • address (string): The destination address for the withdrawal.

  • password (string): The user's password for authentication.

Response

The response will be a JSON object with the following properties:

  • status (string): The status of the withdrawal request.

  • message (string): Additional information or error message.

  • data (object): The data object containing the following property:

    • withdrawalId (string): The ID of the withdrawal transaction.

Authorizations
Body
objectOptionalExample: {"amount":100,"coin":"USDC","address":"0xca2d656f99dc337dE84785c525745426157657B6","password":"1234567890@Abcd"}
Responses
200
OK
application/json
Responseobject
post
POST /v1/withdrawals/ HTTP/1.1
Host: {{baseurl}}
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "amount": 100,
  "coin": "USDC",
  "address": "0xca2d656f99dc337dE84785c525745426157657B6",
  "password": "1234567890@Abcd"
}
200

OK

{
  "status": "success",
  "message": "Successfully created withdrawal request",
  "data": {
    "withdrawalId": "67fe6183218622d647bf8e34"
  }
}