You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: evm_body.yaml
+80
Original file line number
Diff line number
Diff line change
@@ -1355,6 +1355,86 @@ alchemy_getAssetTransfers:
1355
1355
type: string
1356
1356
description: 'String - UUID for pagination. If more results are available, a uuid pageKey will be returned in the response. Pass that uuid into pageKey to fetch the next 1000 or maxCount.'
1357
1357
1358
+
# ============= Txn History API Methods ===============
1359
+
by-address:
1360
+
allOf:
1361
+
- $ref: '#/common_request_fields'
1362
+
- type: object
1363
+
properties:
1364
+
method:
1365
+
$ref: ./components/schemas.yaml#/Method
1366
+
default: by-address
1367
+
params:
1368
+
type: array
1369
+
minItems: 1
1370
+
maxItems: 1
1371
+
items:
1372
+
type: object
1373
+
required:
1374
+
- category
1375
+
properties:
1376
+
fromBlock:
1377
+
type: string
1378
+
description: 'String - Inclusive from block (hex string, int, `latest`, or `indexed`). Defaults to `0x0`'
1379
+
default: '0x0'
1380
+
toBlock:
1381
+
type: string
1382
+
description: 'String - Inclusive to block (hex string, int, `latest`, or `indexed`). Defaults to `latest`. Read more about block tags <span class="custom-style"><a href="https://docs.alchemy.com/reference/transfers-api-quickstart#what-are-the-different-types-of-block-tags" target="_blank">here</a></span>'
1383
+
default: latest
1384
+
fromAddress:
1385
+
type: string
1386
+
description: String - From address (hex string). Default wildcard - any address
1387
+
pattern: '^0[xX][0-9a-fA-F]+$'
1388
+
toAddress:
1389
+
type: string
1390
+
description: String - To address (hex string). Default wildcard - any address
description: 'String - List of contract addresses (hex strings) to filter for - only applies to "erc20", "erc721", "erc1155" transfers. Default wildcard - any address'
1396
+
items:
1397
+
type: string
1398
+
pattern: '^0[xX][0-9a-fA-F]+$'
1399
+
category:
1400
+
type: array
1401
+
minItems: 1
1402
+
description: |
1403
+
'Array of categories, can be any of the following: "external", "internal", "erc20", "erc721", "erc1155", or "specialnft". See the table above for supported categories on each network.'
1404
+
items:
1405
+
type: string
1406
+
enum:
1407
+
- external
1408
+
- internal
1409
+
- erc20
1410
+
- erc721
1411
+
- erc1155
1412
+
- specialnft
1413
+
default: external
1414
+
order:
1415
+
type: string
1416
+
description: |
1417
+
String - Whether to return results in ascending (`asc`) or descending (`desc`) order. Ascending order is from oldest to newest transactions, descending order is from newest to oldest. Defaults to `asc`.
1418
+
enum:
1419
+
- asc
1420
+
- desc
1421
+
withMetadata:
1422
+
type: boolean
1423
+
description: Boolean - Whether or not to include additional metadata about each transfer event. Defaults to `false`.
1424
+
default: false
1425
+
excludeZeroValue:
1426
+
type: boolean
1427
+
description: Boolean - A boolean to exclude transfers with zero value - zero value is not the same as null value. Defaults to `true`.
1428
+
default: true
1429
+
maxCount:
1430
+
type: string
1431
+
description: Max hex string number of results to return per call. Defaults to `0x3e8` (1000).
1432
+
default: '0x3e8'
1433
+
pageKey:
1434
+
type: string
1435
+
description: 'String - UUID for pagination. If more results are available, a uuid pageKey will be returned in the response. Pass that uuid into pageKey to fetch the next 1000 or maxCount.'
0 commit comments