Skip to content

Commit

Permalink
Merge pull request #127 from WalletConnect/relay-watch-webhooks
Browse files Browse the repository at this point in the history
introduce relay watch webhooks
  • Loading branch information
chris13524 authored Mar 8, 2024
2 parents 3e77bf2 + 51af6b6 commit d2c1a79
Show file tree
Hide file tree
Showing 47 changed files with 214 additions and 50 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
25 changes: 3 additions & 22 deletions docs/specs/servers/relay/relay-server-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,8 @@ WebSocket supports JSON-RPC methods. For more details, please visit [Relay RPC d

## HTTP

### Register Webhook
### JSON-RPC

Used to register a webhook that would return an incoming message to the webhook.
Used to request JSON-RPC methods. For more details, please visit [Relay RPC docs](./relay-server-rpc.md).

`POST /register-webhook`

Body:

```jsonc
{
"clientId": string,
"webhook": string
}
```



### Message Id

A Relay message is globally available and it's always an utf8 string. Therefore the message id is derived as the sha256 hash.

```sh
message_id = sha256(message)
```
`POST /rpc`
Loading

0 comments on commit d2c1a79

Please sign in to comment.