Skip to content

Commit

Permalink
Update api_docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed May 1, 2019
1 parent 44e81c2 commit b4f1799
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions api_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ Retrieves the raw transaction by id: `curl https://xsnexplorer.io/api/xsn/stats`
### GET /addresses/:address
Retrieves info about an address: `curl https://xsnexplorer.io/api/xsn/addresses/XvoBWMPo1NFstmCCTWZQ8w4BcmHXddNLxX`

### GET /addresses/:address/transactions
### GET /v2/addresses/:address/transactions

Retrieves the transactions for an address: `curl "https://xsnexplorer.io/api/xsn/addresses/XvoBWMPo1NFstmCCTWZQ8w4BcmHXddNLxX/transactions?offset=0&limit=10&orderBy=time:desc"`
Retrieves the transactions for an address: `curl "https://xsnexplorer.io/api/xsn/v2/addresses/7jqffPwhzkVGbYFf525muhas6uVrhERwAm/transactions?limit=2&order=asc"`

Note: ordering and pagination are optional.
Paginate by the last seen transaction: `curl "https://xsnexplorer.io/api/xsn/v2/addresses/7jqffPwhzkVGbYFf525muhas6uVrhERwAm/transactions?limit=2&order=asc&lastSeenTxid=55df1af4754f8890183ab733a6e1760b22eb18b72c1d416a15f8a2743eb0b0d0"`

Note: the ordering is optional.



Expand All @@ -52,6 +54,6 @@ Retrieves a raw block: `curl https://xsnexplorer.io/api/xsn/blocks/20/raw`
Note: `:query` could be a blockhash or block height.

### GET /blocks/:blockhash/transactions
Retrieves the transactions on the given block: `curl "https://xsnexplorer.io/api/xsn/blocks/31791420aa1d096c84317a3ba40f448ee5fe5a1c6f8c21a02f026e5135b624b4/transactions?offset=0&limit=5&orderBy=time:desc"`
Retrieves the transactions on the given block: `curl "https://xsnexplorer.io/api/xsn/v2/blocks/31791420aa1d096c84317a3ba40f448ee5fe5a1c6f8c21a02f026e5135b624b4/transactions?limit=2"`

Note: ordering and pagination are optional.
Paginate by the last seen transaction: `curl "https://xsnexplorer.io/api/xsn/v2/blocks/31791420aa1d096c84317a3ba40f448ee5fe5a1c6f8c21a02f026e5135b624b4/transactions?limit=2&lastSeenTxid=48579eae0cbcb7e17feed2fd64d8106f8d21961bce141efb5139463ad25f4c61"`

0 comments on commit b4f1799

Please sign in to comment.