Get wallet transactions
curl --request GET \
--url https://demo-api.mobula.io/api/1/wallet/transactionsimport requests
url = "https://demo-api.mobula.io/api/1/wallet/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/wallet/transactions', 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://demo-api.mobula.io/api/1/wallet/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-api.mobula.io/api/1/wallet/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://demo-api.mobula.io/api/1/wallet/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/wallet/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"transactions": [
{
"id": "<string>",
"timestamp": 123,
"from": "<string>",
"to": "<string>",
"contract": "<string>",
"hash": "<string>",
"amount_usd": 123,
"amount": 123,
"block_number": 123,
"type": "<string>",
"blockchain": "<string>",
"tx_cost": 123,
"transaction": {
"hash": "<string>",
"chainId": "<string>",
"fees": "<string>",
"feesUSD": 123,
"date": "<string>"
},
"asset": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"totalSupply": 123,
"circulatingSupply": 123,
"price": 123,
"liquidity": 123,
"priceChange24hPercent": 123,
"marketCapUSD": 123,
"logo": "<string>",
"nativeChainId": "<string>",
"contract": "<string>"
}
}
],
"wallets": [
"<string>"
]
},
"details": null,
"pagination": {
"total": 123,
"page": 123,
"offset": 123,
"limit": 123
}
}Get Historical Transactions
Retrieve historical transactions for one or multiple wallets with flexible filtering, pagination, and caching options.
GET
/
1
/
wallet
/
transactions
Get wallet transactions
curl --request GET \
--url https://demo-api.mobula.io/api/1/wallet/transactionsimport requests
url = "https://demo-api.mobula.io/api/1/wallet/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/wallet/transactions', 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://demo-api.mobula.io/api/1/wallet/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-api.mobula.io/api/1/wallet/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://demo-api.mobula.io/api/1/wallet/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/wallet/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"transactions": [
{
"id": "<string>",
"timestamp": 123,
"from": "<string>",
"to": "<string>",
"contract": "<string>",
"hash": "<string>",
"amount_usd": 123,
"amount": 123,
"block_number": 123,
"type": "<string>",
"blockchain": "<string>",
"tx_cost": 123,
"transaction": {
"hash": "<string>",
"chainId": "<string>",
"fees": "<string>",
"feesUSD": 123,
"date": "<string>"
},
"asset": {
"id": 123,
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"totalSupply": 123,
"circulatingSupply": 123,
"price": 123,
"liquidity": 123,
"priceChange24hPercent": 123,
"marketCapUSD": 123,
"logo": "<string>",
"nativeChainId": "<string>",
"contract": "<string>"
}
}
],
"wallets": [
"<string>"
]
},
"details": null,
"pagination": {
"total": 123,
"page": 123,
"offset": 123,
"limit": 123
}
}Deprecated EndpointThis endpoint is deprecated. Please use the new v2 endpoint instead:
- /api/2/wallet/activity — Fetch detailed wallet activity with smart swap detection, spam filtering, and cursor-based pagination
Query Parameters
- You must provide either the
walletparameter or thewalletsparameter.
Query Details
| Parameter | Type | Description |
|---|---|---|
wallet | Cond. | Single wallet address to query trades for. |
wallets | string | Comma-separated list of wallet addresses to query. |
blockchains | string | Comma-separated list of blockchain chain IDs/names to filter by. |
limit | string | Number of items to return. |
offset | string | Offset for pagination (alternative to page). |
page | string | Page number for pagination (alternative to offset). |
order | string | Sort order: "asc" or "desc" by timestamp. |
from | string | Start date filter (ISO string or timestamp). |
to | string | End date filter (ISO string or timestamp). |
asset | string | Filter by specific asset address. |
unlistedAssets | string | Include unlisted or non-indexed assets (boolean). |
pagination | string | Set to "true" to include pagination metadata. Default is "false". |
filterSpam | string | Filter out spam tokens (boolean). |
Usage Examples
- Query Wallet Transactions with Unlisted Assets and Pagination
curl -X GET "https://demo-api.mobula.io/api/1/wallet/transactions?wallet=0xaF88370abD82EC6943cdB3D4ec7b764B92c35B43&unlistedAssets=true&pagination=true"
- Query Wallet Transactions Filtered by Date Range
curl -X GET "https://demo-api.mobula.io/api/1/wallet/transactions?wallet=4tqMHgB8jjbTgefVfqtVFYzyfQz2LQ8T3E922ePmt6kZ&from=1704067200000&to=1735689600000"
Query Parameters
Number of results per page
Offset for pagination
Page number
Sort order (asc/desc)
Wallet address
Comma-separated wallet addresses
Start timestamp
End timestamp
Filter by asset address
Comma-separated blockchain IDs
Include unlisted assets
Enable pagination details
Filter spam transactions
⌘I