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

Commit

Permalink
Added Cypher example for multiple paths between addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
in3rsha committed Jan 13, 2021
1 parent 1314247 commit 4918026
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/cypher.md
Expand Up @@ -97,6 +97,17 @@ RETURN path

This query allows you to see if two address are connected by a series of transactions. It also returns a path if there are common intermediary addresses.

### Between Addresses (Multiple Paths)

```
MATCH (start :address {address:'$address1'}), (end :address {address:'$address2'})
MATCH path=allShortestPaths( (start)-[:in|:out|:locked*]-(end) )
RETURN path
LIMIT 5
```

This is the most interesting query if you're looking to visualize all the connections between two addresses. It's best to start with a low `LIMIT` (i.e. small number of paths) and go from there.

## Historical Analyses

### First Transctions
Expand Down

0 comments on commit 4918026

Please sign in to comment.