curl "http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200"
const response = await fetch('http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200');
const { messages } = await response.json();
import requests
response = requests.get('http://localhost:9090/messages', params={
'domain_id': 1,
'nonce_start': 100,
'nonce_end': 200
})
messages = response.json()
{
"messages": [
{
"version": 3,
"nonce": 1235,
"origin": 1,
"destination": 2,
"sender": "0xabc...",
"recipient": "0xdef...",
"body": [0, 3, 0, 23, 43, 65]
}
]
}
HTTP API
Get Messages
GET
/
messages
curl "http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200"
const response = await fetch('http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200');
const { messages } = await response.json();
import requests
response = requests.get('http://localhost:9090/messages', params={
'domain_id': 1,
'nonce_start': 100,
'nonce_end': 200
})
messages = response.json()
{
"messages": [
{
"version": 3,
"nonce": 1235,
"origin": 1,
"destination": 2,
"sender": "0xabc...",
"recipient": "0xdef...",
"body": [0, 3, 0, 23, 43, 65]
}
]
}
Query messages for a specific domain within a nonce range.
Show Query Parameters
Show Query Parameters
Show Response Body
Show Response Body
curl "http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200"
const response = await fetch('http://localhost:9090/messages?domain_id=1&nonce_start=100&nonce_end=200');
const { messages } = await response.json();
import requests
response = requests.get('http://localhost:9090/messages', params={
'domain_id': 1,
'nonce_start': 100,
'nonce_end': 200
})
messages = response.json()
{
"messages": [
{
"version": 3,
"nonce": 1235,
"origin": 1,
"destination": 2,
"sender": "0xabc...",
"recipient": "0xdef...",
"body": [0, 3, 0, 23, 43, 65]
}
]
}
Was this page helpful?
⌘I