Import Transfer
API Overview
This API enables the batch import of transfer records into the system, supporting the import of multiple data entries in a single request.
Request Method:
POSTRequest URL:
https://openapi.elven.com/open/v3/transaction/transfer
Request Headers
elven-api-key
String
Yes
The API key assigned to you
elven-api-sign
String
Yes
Request signature, used to verify the legitimacy of the request
elven-api-timestamp
String
Yes
Request timestamp, in milliseconds
Request Parameters
Body Parameters (JSON Format)
entityAccountId
String
Yes
The primary key of the account.
sourceId
String
Yes
The primary key of the source.
list
Array
Yes
Transaction record list, containing multiple transaction objects, with a maximum of 1000 records supported per request.
Elements in the List
direction
String
Yes
IN or OUT, representing the direction of the transaction.
amount
Number
Yes
The transaction amount.
currency
String
Yes
Transaction currency, which can be obtained from the currency query API.
Case-sensitive.
transactionID
String
No
A unique identifier for the transaction.
type
String
Yes
The transaction type, determined by the platform.type.
datetime
String
Yes
Transaction time, formatted as YYYY-MM-DD HH:mm:ss
counterpartyAccountNo
String
No
The counterparty’s address or account.
counterpartyPlatformId
String
No
The counterparty’s platform ID.
memo
String
No
Additional information or notes for the transaction.
type Parameter Options
For
platform.type = CHAINCHAIN_TRANSFER_INCHAIN_TRANSFER_OUTCHAIN_TRANSACTION_FEE
For
platform.type = BANKBANK_DEPOSITBANK_WITHDRAWBANK_FEEBANK_INCOMING_FXBANK_OUTGOING_FX
For
platform.type = EXCHANGEEXCHANGE_DEPOSITEXCHANGE_WITHDRAWEXCHANGE_TRADE_INEXCHANGE_TRADE_OUTEXCHANGE_FEEEXCHANGE_STAKEEXCHANGE_UNSTAKEEXCHANGE_REWARDEXCHANGE_REALIZED_PNLEXCHANGE_BORROWEXCHANGE_REPAYEXCHANGE_FUNDING_FEEEXCHANGE_TRANSFER_INEXCHANGE_TRANSFER_OUT
For
platform.type = CUSTODYCUSTODY_DEPOSITCUSTODY_WITHDRAWCUSTODY_FEE
For
platform.type = PAYMENTPAYMENT_COMPLETEDPAYMENT_CHARGE_BACKPAYMENT_REFUNDPAYMENT_FEEPAYMENT_PAYOUTPAYMENT_INCOMING_FXPAYMENT_OUTGOING_FX
Example Request
{
"entityAccountId": "accountId123",
"sourceId": "sourceId456",
"list": [
{
"direction": "IN",
"amount": 10,
"currency": "BTC",
"transactionID": "0xaaa",
"type": "CHAIN_TRANSFER_IN",
"datetime": "2024-01-01 01:11:11",
"counterpartyAccountNo": "0xsss",
"counterpartyPlatformId": "platformId789",
"memo": "this is memo"
},
{
"direction": "OUT",
"amount": 5,
"currency": "ETH",
"transactionID": "0xbbb",
"type": "CHAIN_TRANSFER_OUT",
"datetime": "2024-01-02 02:22:22",
"counterpartyAccountNo": "0xttt",
"counterpartyPlatformId": "platformId012",
"memo": ""
}
]
}Response Parameters
success
Boolean
Upload Task Status
Example Response
{
"success": true
}Notes
Asynchronous Processing: This API only imports the transaction data into a pre-processing database. The system processes the data asynchronously, and the imported transactions will appear in the user's transaction list after processing is complete.
Record Limit: Each request supports importing up to 1000 transaction records. For larger datasets, split them into multiple requests.
Data Integrity: Ensure the transaction data is complete and accurate to avoid import errors.
Datetime Format: The
datetimefield must strictly follow the formatYYYY-MM-DD HH:mm:ss. Parsing errors may occur if the format is incorrect.Transaction Type Validation: The
typeparameter must match the correct options based on theplatform.type. Mismatched values may result in incorrect transaction classification.
Last updated
Was this helpful?