โžก๏ธTransfer

This documentation provides details on the API endpoints available for Whirlprivacy.io, focusing on transfer-related operations.

POST /transfer/init - Initiate Transfer

Description: Initiates a virtual transfer between two accounts, either from UUID to UUID or from UUID to a recipient address.

Parameters:

Parameter
Type
Description

ticker

string

The asset ticker symbol.

amount

string

The amount of the asset to transfer.

senderUuid

string

The UUID of the sender's virtual account.

recipient

string

The recipient's address or UUID.

senderLabel

string

An optional label for the sender's virtual account.

fees

string

Optional fees to be applied to the transaction.

feesCollector

string

The collector of the transaction fees.

Response:

{
  "error": [],
  "result": {
    "transactionId": "unique_transaction_identifier",
    "status": "initiated",
    "timestamp": "timestamp_of_creation"
  }
}

Error Handling:

Error Code
Description

E_INVALID_PARAMS

Returned if required parameters are missing or invalid.

E_INVALID_TICKER

Invalid or unsupported ticker symbol.

E_INVALID_AMOUNT

Invalid transaction amount, possibly below minimum threshold.

E_FEES_ABOVE_AMOUNT

Specified fees are greater than the transaction amount.

E_INVALID_FEES_COLLECTOR

Fees collector address is invalid or not found.

E_CREATING_VIRTUAL_TRANSFER

General error during the transfer initiation process.

Example Code:

GET /transfer/history/sent - Sent Transfer History

Description: Retrieves the history of all transfers sent from the user's virtual accounts.

Parameters:

Parameter
Type
Description

label

string

Optional label of the user's virtual account.

uuid

string

Optional UUID of the user's virtual account.

Response:

Error Handling:

Error Code
Description

E_UNAUTHORIZED

Unauthorized access, possibly due to bad token.

Example Code:

GET /transfer/history/received - Received Transfer History

Description: Retrieves the history of all transfers received into the user's virtual accounts.

Parameters:

Parameter
Type
Description

label

string

Optional label of the user's virtual account.

uuid

string

Optional UUID of the user's virtual account.

Response:

Error Handling:

Error Code
Description

E_UNAUTHORIZED

Unauthorized access, possibly due to bad token.

Example Code:

GET /virtual/virtual-transfer-fee/total - Retrieve Total Virtual Transfer Fees

Description: This endpoint retrieves the total of virtual transfer fees for a specific user from the specified address.

Parameters:

Parameter
Type
Description
Required

from

string

Blockchain address to filter the transactions.

Yes

Response:

Error Handling:

Error Code
Description

E_INVALID_ADDRESS

Provided 'from' parameter is invalid.

Example Code:

GET /virtual/virtual-transfer-fee/history - Retrieve Virtual Transfer Fee History

Description: This endpoint retrieves the history of virtual transfer fees for a specific user from the specified address with pagination.

Parameters:

Parameter
Type
Description
Required

from

string

Blockchain address to filter the transactions.

No

page

integer

Page number for pagination.

No

Response:

Error Handling:

Error Code
Description

E_INVALID_ADDRESS

Provided 'from' parameter is invalid.

Example Code:

Last updated