History
get
Retrieves the wallet history for a given address and blockchain chain.
Authorizations
AuthorizationstringRequired
Path parameters
addressstringRequired
- The wallet address to retrieve history for.
Query parameters
chainstringRequired
- The blockchain chain to retrieve history from.
Header parameters
AuthorizationstringRequired
- The authorization token for the request.
Responses
200
A promise that resolves to a WalletHistoryAPIResponse object containing the wallet history data.
application/json
Interface representing the response from the Wallet History API.
successbooleanRequired
The success status of the operation.
messagestringRequired
The message associated with the operation.
addressstringOptional
The address associated with the operation.
get/data/{address}/history
GET /data/{address}/history?chain=text HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200
A promise that resolves to a WalletHistoryAPIResponse object containing the wallet history data.
{
"success": true,
"message": "text",
"body": {
"to": "text",
"data": "text",
"value": "text",
"gasLimit": "text",
"nonce": "text",
"simulate": true,
"gas": "text",
"gasPrice": "text",
"maxFeePerGas": "text",
"maxPriorityFeePerGas": "text",
"chain_id": "text",
"encoding": "text",
"type": 1,
"accessList": [
{
"address": "text",
"storageKeys": [
"text"
]
}
],
"blobGas": "text",
"blobGasFeeCap": "text",
"blobHashes": [
"text"
],
"dryrun": true,
"input": "text",
"EOA": true,
"contract_address": "text",
"token_id": "text",
"token_ids": "text",
"approved": true,
"broadcast": true,
"alwaysIncrementNonce": true,
"asset": "text",
"amount": "text",
"interestRateMode": 1,
"referralCode": 1,
"onBehalfOf": "text",
"receiverAddress": "text",
"assets": [
"text"
],
"amounts": [
"text"
],
"modes": [
1
],
"params": "text",
"rateMode": 1,
"useAsCollateral": true,
"collateralAsset": "text",
"debtAsset": "text",
"user": "text",
"debtToCover": "text",
"receiveAToken": true,
"inputTokens": [
{
"tokenAddress": "text",
"amount": "text"
}
],
"outputTokens": [
{
"tokenAddress": "text",
"proportion": 1
}
],
"slippageLimitPercent": 1,
"minHealthFactor": "text",
"premiums": [
"text"
],
"initiator": "text",
"role": "text",
"account": "text",
"initialDeposit": "text",
"borrowAmount": "text"
},
"address": "text",
"data": [
{
"hash": "text",
"nonce": "text",
"transaction_index": "text",
"from_address_entity": "text",
"from_address_entity_logo": "text",
"from_address": "text",
"from_address_label": "text",
"to_address_entity": "text",
"to_address_entity_logo": "text",
"to_address": "text",
"to_address_label": "text",
"value": "text",
"gas": "text",
"gas_price": "text",
"input": "text",
"receipt_cumulative_gas_used": "text",
"receipt_gas_used": "text",
"receipt_contract_address": "text",
"receipt_status": "text",
"transaction_fee": "text",
"block_timestamp": "text",
"block_number": "text",
"block_hash": "text",
"internal_transactions": [
{
"transaction_hash": "text",
"block_number": "text",
"block_hash": "text",
"type": "text",
"from": "text",
"to": "text",
"value": "text",
"gas": "text",
"gas_used": "text",
"input": "text",
"output": "text"
}
],
"category": "send",
"contract_interactions": {
"approvals": [
{
"value": "text",
"value_formatted": "text",
"token": {
"address": "text",
"address_label": "text",
"token_name": "text",
"token_logo": "text",
"token_symbol": "text"
},
"spender": {
"address": "text",
"address_label": "text",
"name": "text",
"symbol": "text",
"logo": "text"
}
}
],
"revokes": [
{
"value": "text",
"value_formatted": "text",
"token": {
"address": "text",
"address_label": "text",
"token_name": "text",
"token_logo": "text",
"token_symbol": "text"
},
"spender": {
"address": "text",
"address_label": "text",
"name": "text",
"symbol": "text",
"logo": "text"
}
}
],
"approvalsAll": [
{
"value": "text",
"value_formatted": "text",
"token": {
"address": "text",
"address_label": "text",
"token_name": "text",
"token_logo": "text",
"token_symbol": "text"
},
"spender": {
"address": "text",
"address_label": "text",
"name": "text",
"symbol": "text",
"logo": "text"
}
}
],
"revokesAll": [
{
"value": "text",
"value_formatted": "text",
"token": {
"address": "text",
"address_label": "text",
"token_name": "text",
"token_logo": "text",
"token_symbol": "text"
},
"spender": {
"address": "text",
"address_label": "text",
"name": "text",
"symbol": "text",
"logo": "text"
}
}
]
},
"possible_spam": true,
"method_label": "text",
"summary": "text",
"nft_transfers": [
{
"token_address": "text",
"token_id": "text",
"from_address_entity": "text",
"from_address_entity_logo": "text",
"from_address": "text",
"from_address_label": "text",
"to_address_entity": "text",
"to_address_entity_logo": "text",
"to_address": "text",
"to_address_label": "text",
"value": "text",
"amount": "text",
"contract_type": "text",
"transaction_type": "text",
"log_index": 1,
"operator": "text",
"possible_spam": true,
"verified_collection": true,
"direction": "text",
"collection_logo": "text",
"collection_banner_image": "text",
"normalized_metadata": {
"name": "text",
"description": "text",
"image": "text",
"external_link": "text",
"animation_url": "text",
"attributes": [
{
"trait_type": "text",
"value": {},
"display_type": "text",
"max_value": 1,
"trait_count": 1,
"order": 1
}
]
}
}
],
"erc20_transfers": [
{
"token_name": "text",
"token_symbol": "text",
"token_logo": "text",
"token_decimals": "text",
"address": "text",
"block_timestamp": "text",
"to_address_entity": "text",
"to_address_entity_logo": "text",
"to_address": "text",
"to_address_label": "text",
"from_address_entity": "text",
"from_address_entity_logo": "text",
"from_address": "text",
"from_address_label": "text",
"value": "text",
"value_formatted": "text",
"log_index": 1,
"possible_spam": true,
"verified_contract": true
}
],
"native_transfers": [
{
"from_address_entity": "text",
"from_address_entity_logo": "text",
"from_address": "text",
"from_address_label": "text",
"to_address_entity": "text",
"to_address_entity_logo": "text",
"to_address": "text",
"to_address_label": "text",
"value": "text",
"value_formatted": "text",
"direction": "text",
"internal_transaction": true,
"token_symbol": "text",
"token_logo": "text"
}
],
"logs": [
{
"log_index": "text",
"transaction_hash": "text",
"transaction_index": "text",
"address": "text",
"data": "text",
"topic0": "text",
"topic1": "text",
"topic2": "text",
"topic3": "text",
"block_timestamp": "text",
"block_number": "text",
"block_hash": "text",
"decoded_event": {
"signature": "text",
"label": "text",
"type": "text",
"params": [
{
"name": "text",
"value": "text",
"type": "text"
}
]
}
}
]
}
]
}