> For the complete documentation index, see [llms.txt](https://sending-network.gitbook.io/sending.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sending-network.gitbook.io/sending.network/sdk-documentation/javascript-client-sdk/social-graph.md).

# Social Graph

## Query Social Graph

| Name                 | Parameters Description | Response                                                                                                            |
| -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `querySocialGraph()` | N/A                    | <ul><li>exist: return 0 if social graph doesn't exit, otherwise return 1.</li><li>message: signed message</li></ul> |

## Backup Social Graph

| Name                      | Parameters Description                                                                                                   | response                                                                                                                            |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| `backupSocialGraph(data)` | <ul><li><p><code>data</code>:</p><ul><li>message: signed message</li><li>signature: wallet signature</li></ul></li></ul> | transactions: transaction data on the blockchain. The backup will be completed when the transaction is confirmed on the blockchain. |

## Restore Social Graph

| Name                       | Parameters Description                                                                  | Response |
| -------------------------- | --------------------------------------------------------------------------------------- | -------- |
| `restoreSocialGraph(data)` | <ul><li><p><code>data</code>：</p><ul><li>signature：wallet signature</li></ul></li></ul> | N/A      |
