Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 126 additions & 22 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,132 @@ const docTemplate = `{
}
}
}
},
"/{chainId}/wallet-transactions": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"description": "Retrieve all incoming and outgoing transactions for a specific wallet address",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wallet"
],
"summary": "Get wallet transactions",
"parameters": [
{
"type": "string",
"description": "Chain ID",
"name": "chainId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Wallet address",
"name": "wallet_address",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Filter parameters",
"name": "filter",
"in": "query"
},
{
"type": "string",
"description": "Field to group results by",
"name": "group_by",
"in": "query"
},
{
"type": "string",
"description": "Field to sort results by",
"name": "sort_by",
"in": "query"
},
{
"type": "string",
"description": "Sort order (asc or desc)",
"name": "sort_order",
"in": "query"
},
{
"type": "integer",
"description": "Page number for pagination",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Number of items per page",
"name": "limit",
"in": "query"
},
{
"type": "boolean",
"description": "Force consistent data at the expense of query speed",
"name": "force_consistent_data",
"in": "query"
},
{
"type": "boolean",
"description": "Decode transaction data",
"name": "decode",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/api.QueryResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/common.DecodedTransactionModel"
}
}
}
}
]
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1604,18 +1730,12 @@ const docTemplate = `{
"common.DecodedLogDataModel": {
"type": "object",
"properties": {
"indexedParams": {
"type": "object"
},
"indexed_params": {
"type": "object"
},
"name": {
"type": "string"
},
"nonIndexedParams": {
"type": "object"
},
"non_indexed_params": {
"type": "object"
},
Expand Down Expand Up @@ -1648,14 +1768,6 @@ const docTemplate = `{
"decoded": {
"$ref": "#/definitions/common.DecodedLogDataModel"
},
"decodedData": {
"description": "Deprecated: Use Decoded field instead",
"allOf": [
{
"$ref": "#/definitions/common.DecodedLogDataModel"
}
]
},
"log_index": {
"type": "integer"
},
Expand Down Expand Up @@ -1724,14 +1836,6 @@ const docTemplate = `{
"decoded": {
"$ref": "#/definitions/common.DecodedTransactionDataModel"
},
"decodedData": {
"description": "Deprecated: Use Decoded field instead",
"allOf": [
{
"$ref": "#/definitions/common.DecodedTransactionDataModel"
}
]
},
"effective_gas_price": {
"type": "string"
},
Expand Down
148 changes: 126 additions & 22 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,132 @@
}
}
}
},
"/{chainId}/wallet-transactions": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"description": "Retrieve all incoming and outgoing transactions for a specific wallet address",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"wallet"
],
"summary": "Get wallet transactions",
"parameters": [
{
"type": "string",
"description": "Chain ID",
"name": "chainId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Wallet address",
"name": "wallet_address",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Filter parameters",
"name": "filter",
"in": "query"
},
{
"type": "string",
"description": "Field to group results by",
"name": "group_by",
"in": "query"
},
{
"type": "string",
"description": "Field to sort results by",
"name": "sort_by",
"in": "query"
},
{
"type": "string",
"description": "Sort order (asc or desc)",
"name": "sort_order",
"in": "query"
},
{
"type": "integer",
"description": "Page number for pagination",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Number of items per page",
"name": "limit",
"in": "query"
},
{
"type": "boolean",
"description": "Force consistent data at the expense of query speed",
"name": "force_consistent_data",
"in": "query"
},
{
"type": "boolean",
"description": "Decode transaction data",
"name": "decode",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/api.QueryResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/common.DecodedTransactionModel"
}
}
}
}
]
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1597,18 +1723,12 @@
"common.DecodedLogDataModel": {
"type": "object",
"properties": {
"indexedParams": {
"type": "object"
},
"indexed_params": {
"type": "object"
},
"name": {
"type": "string"
},
"nonIndexedParams": {
"type": "object"
},
"non_indexed_params": {
"type": "object"
},
Expand Down Expand Up @@ -1641,14 +1761,6 @@
"decoded": {
"$ref": "#/definitions/common.DecodedLogDataModel"
},
"decodedData": {
"description": "Deprecated: Use Decoded field instead",
"allOf": [
{
"$ref": "#/definitions/common.DecodedLogDataModel"
}
]
},
"log_index": {
"type": "integer"
},
Expand Down Expand Up @@ -1717,14 +1829,6 @@
"decoded": {
"$ref": "#/definitions/common.DecodedTransactionDataModel"
},
"decodedData": {
"description": "Deprecated: Use Decoded field instead",
"allOf": [
{
"$ref": "#/definitions/common.DecodedTransactionDataModel"
}
]
},
"effective_gas_price": {
"type": "string"
},
Expand Down
Loading