Wallet History
Get Bitcoin transaction history for a wallet. The wallet identifier accepts either a Bitcoin address or an xpub - when an xpub is supplied, history is aggregated across all derived addresses server-side.
Supported chain family: Bitcoin (native BTC transfers).
walletAddressOrPublicKey path parameter accepts either a Bitcoin address or an xpub — when an xpub is supplied, history is aggregated across all derived addresses server-side.chains parameter is optional — Moralis detects the chain family from the address format. Passing chains=bitcoin explicitly still works.Authorizations
Path Parameters
A Bitcoin address or an xpub. When an xpub is supplied, the API derives all addresses server-side.
Query Parameters
Chains to query. For the Bitcoin API, pass bitcoin.
bitcoin The limit per page
1 <= x <= 100The cursor to the next page
The order of items
ASC, DESC The start date from which to get the wallet history (format in seconds or string accepted by momentjs)
- Provide the param 'fromBlock' or 'fromDate'
- If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used.
The end date from which to get the wallet history (format in seconds or string accepted by momentjs)
- Provide the param 'toBlock' or 'toDate'
- If 'toDate' and 'toBlock' are provided, 'toBlock' will be used.
The minimum block number from which to get the wallet history
- Provide the param 'fromBlock' or 'fromDate'
- If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used.
The block number to get the wallet history until
When true, returns full raw chain-specific data including logs, input data, and vin/vout arrays. Array fields are capped at 100 items with a hasMore flag.
Response
The queried wallet address
"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
The wallet address type
bitcoin "evm"
Opaque cursor token for pagination (null when no more pages)
Current page number (1-indexed)
1
Number of items in this page
Array of wallet history items
Response metadata with sync status and diagnostics

