POST
/
messages
curl -X POST "http://localhost:9090/messages" \
  -H "Content-Type: application/json" \
  -d \
'{
  "messages": [
    {
      "dispatched_block_number": 10000,
      "message": {
        "version": 3,
        "nonce": 1234,
        "origin": 1,
        "destination": 2,
        "sender": "0xabc...",
        "recipient": "0xdef...",
        "body": [0, 3, 0, 23, 43, 65]
      }
    },
    {
      "dispatched_block_number": 10010,
      "message": {
        "version": 3,
        "nonce": 1235,
        "origin": 1,
        "destination": 2,
        "sender": "0xabc...",
        "recipient": "0xdef...",
        "body": [0, 3, 0, 23, 43, 65]
      }
    }
  ]
}'
{
  "count": 4,
  "skipped": []
}
Insert new messages into the database.
curl -X POST "http://localhost:9090/messages" \
  -H "Content-Type: application/json" \
  -d \
'{
  "messages": [
    {
      "dispatched_block_number": 10000,
      "message": {
        "version": 3,
        "nonce": 1234,
        "origin": 1,
        "destination": 2,
        "sender": "0xabc...",
        "recipient": "0xdef...",
        "body": [0, 3, 0, 23, 43, 65]
      }
    },
    {
      "dispatched_block_number": 10010,
      "message": {
        "version": 3,
        "nonce": 1235,
        "origin": 1,
        "destination": 2,
        "sender": "0xabc...",
        "recipient": "0xdef...",
        "body": [0, 3, 0, 23, 43, 65]
      }
    }
  ]
}'
{
  "count": 4,
  "skipped": []
}