Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Commit

Permalink
Merge pull request #6 from TrueBlocks/docs/new_response_format
Browse files Browse the repository at this point in the history
New response format code review fixes
  • Loading branch information
tjayrush authored Feb 20, 2024
2 parents fc0a131 + 04f5d92 commit 165e22a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions content/english/docs/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Returns appearances of the given address.

### Returns

An array of appearances (from the earliest to the latest)
An array of appearances (from the earliest block to the latest). If nothing is found, an empty array.

### Example

Expand Down Expand Up @@ -97,7 +97,8 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"tb_getAppearanceCount","params":
"result": {
"data": 5302,
"meta": {
"lastIndexedBlock": 19268245
"lastIndexedBlock": 19268245,
"address": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
}
}
}
Expand All @@ -113,7 +114,7 @@ None

### Returns

Status object with last indexed block number (decimal)
Returns only `meta` object (with last indexed block number as a decimal)

### Example

Expand All @@ -125,7 +126,8 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"tb_lastIndexedBlock","params":[]
"id": 1,
"jsonrpc": "2.0",
"result": {
"data": {
"data": null,
"meta": {
"lastIndexedBlock": 19268245
}
}
Expand Down

0 comments on commit 165e22a

Please sign in to comment.