Wallet Transaction History
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--data '
{
"coinKey": "<string>",
"coinName": "<string>",
"txHash": "<string>",
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"orderNo": "<string>",
"transactionType": "<string>",
"transactionStatus": "<string>",
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10,
"searchTerm": "<string>"
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction"
payload = {
"coinKey": "<string>",
"coinName": "<string>",
"txHash": "<string>",
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"orderNo": "<string>",
"transactionType": "<string>",
"transactionStatus": "<string>",
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10,
"searchTerm": "<string>"
}
headers = {
"X-Forwarded-From": "<x-forwarded-from>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Forwarded-From': '<x-forwarded-from>', 'Content-Type': 'application/json'},
body: JSON.stringify({
coinKey: '<string>',
coinName: '<string>',
txHash: '<string>',
sourceAddress: '<string>',
destinationAddress: '<string>',
orderNo: '<string>',
transactionType: '<string>',
transactionStatus: '<string>',
startTime: 123,
endTime: 123,
pageNum: 1,
pageSize: 10,
searchTerm: '<string>'
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'coinKey' => '<string>',
'coinName' => '<string>',
'txHash' => '<string>',
'sourceAddress' => '<string>',
'destinationAddress' => '<string>',
'orderNo' => '<string>',
'transactionType' => '<string>',
'transactionStatus' => '<string>',
'startTime' => 123,
'endTime' => 123,
'pageNum' => 1,
'pageSize' => 10,
'searchTerm' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Forwarded-From: <x-forwarded-from>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction"
payload := strings.NewReader("{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("Content-Type", "application/json")
.body("{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 200,
"msg": "Success",
"data": {
"total": 500,
"pageNum": 1,
"pageSize": 10,
"records": [
{
"orderNo": "<string>",
"coinKey": "<string>",
"block": 123,
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"txHash": "<string>",
"transactionHash": "<string>",
"txAmount": 123,
"transactionTime": 123,
"confirmTime": 123,
"coinName": "<string>",
"feeRate": 123,
"fee": 123,
"fixedFee": 123,
"receivedAmount": 123,
"receivedCurrency": "<string>",
"type": "<string>",
"status": "<string>",
"message": "<string>",
"createTime": 123,
"updateTime": 123,
"transactionId": "<string>",
"addressId": "<string>",
"accountId": "<string>",
"chainKey": "<string>",
"blockHash": "<string>",
"blockNumber": 123,
"blockHeight": 123,
"transactionType": "<string>",
"transactionStatus": "<string>",
"amount": 123,
"feeAmount": 123,
"confirmations": 123,
"requiredConfirmations": 123,
"fromAddress": "<string>",
"toAddress": "<string>",
"memo": "<string>",
"blockTime": 123,
"description": "<string>",
"isInternal": true,
"isWatchOnly": true,
"explorerUrl": "<string>",
"network": "<string>"
}
]
}
}Wallet
Wallet Transaction History
Query wallet deposit/withdraw transaction history
POST
/
api
/
v2.1
/
fincard
/
virtual
/
wallet
/
v2
/
transaction
Wallet Transaction History
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--data '
{
"coinKey": "<string>",
"coinName": "<string>",
"txHash": "<string>",
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"orderNo": "<string>",
"transactionType": "<string>",
"transactionStatus": "<string>",
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10,
"searchTerm": "<string>"
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction"
payload = {
"coinKey": "<string>",
"coinName": "<string>",
"txHash": "<string>",
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"orderNo": "<string>",
"transactionType": "<string>",
"transactionStatus": "<string>",
"startTime": 123,
"endTime": 123,
"pageNum": 1,
"pageSize": 10,
"searchTerm": "<string>"
}
headers = {
"X-Forwarded-From": "<x-forwarded-from>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Forwarded-From': '<x-forwarded-from>', 'Content-Type': 'application/json'},
body: JSON.stringify({
coinKey: '<string>',
coinName: '<string>',
txHash: '<string>',
sourceAddress: '<string>',
destinationAddress: '<string>',
orderNo: '<string>',
transactionType: '<string>',
transactionStatus: '<string>',
startTime: 123,
endTime: 123,
pageNum: 1,
pageSize: 10,
searchTerm: '<string>'
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'coinKey' => '<string>',
'coinName' => '<string>',
'txHash' => '<string>',
'sourceAddress' => '<string>',
'destinationAddress' => '<string>',
'orderNo' => '<string>',
'transactionType' => '<string>',
'transactionStatus' => '<string>',
'startTime' => 123,
'endTime' => 123,
'pageNum' => 1,
'pageSize' => 10,
'searchTerm' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Forwarded-From: <x-forwarded-from>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction"
payload := strings.NewReader("{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("Content-Type", "application/json")
.body("{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/fincard/virtual/wallet/v2/transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"coinKey\": \"<string>\",\n \"coinName\": \"<string>\",\n \"txHash\": \"<string>\",\n \"sourceAddress\": \"<string>\",\n \"destinationAddress\": \"<string>\",\n \"orderNo\": \"<string>\",\n \"transactionType\": \"<string>\",\n \"transactionStatus\": \"<string>\",\n \"startTime\": 123,\n \"endTime\": 123,\n \"pageNum\": 1,\n \"pageSize\": 10,\n \"searchTerm\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 200,
"msg": "Success",
"data": {
"total": 500,
"pageNum": 1,
"pageSize": 10,
"records": [
{
"orderNo": "<string>",
"coinKey": "<string>",
"block": 123,
"sourceAddress": "<string>",
"destinationAddress": "<string>",
"txHash": "<string>",
"transactionHash": "<string>",
"txAmount": 123,
"transactionTime": 123,
"confirmTime": 123,
"coinName": "<string>",
"feeRate": 123,
"fee": 123,
"fixedFee": 123,
"receivedAmount": 123,
"receivedCurrency": "<string>",
"type": "<string>",
"status": "<string>",
"message": "<string>",
"createTime": 123,
"updateTime": 123,
"transactionId": "<string>",
"addressId": "<string>",
"accountId": "<string>",
"chainKey": "<string>",
"blockHash": "<string>",
"blockNumber": 123,
"blockHeight": 123,
"transactionType": "<string>",
"transactionStatus": "<string>",
"amount": 123,
"feeAmount": 123,
"confirmations": 123,
"requiredConfirmations": 123,
"fromAddress": "<string>",
"toAddress": "<string>",
"memo": "<string>",
"blockTime": 123,
"description": "<string>",
"isInternal": true,
"isWatchOnly": true,
"explorerUrl": "<string>",
"network": "<string>"
}
]
}
}Headers
User agent
Forwarded for
Client application identifier
Example:
"client-app"
Tenant ID
Device ID
Platform
Body
application/json
Wallet transaction request
Wallet transaction history request
Coin key (optional)
Coin name (optional)
Transaction hash (optional)
Source address (optional)
Destination address (optional)
Order number (optional)
Transaction type: DEPOSIT, WITHDRAW
Transaction status: wait_process, processing, success, fail
Start time (milliseconds). Range cannot exceed 90 days.
End time (milliseconds). Range cannot exceed 90 days.
Current page. Default is 1
Page size. Default 10, maximum 100
Search term (optional)
⌘I