Skip to content

syncing

Evan Feenstra edited this page Nov 17, 2020 · 1 revision

streaming payments

  • new POST /stream, that takes
{
  "destinations": Destination[],
  "amount": number,
  "chat_id": number,
  "text": string
}

And splits the amount based on the Destination "split", and sends the text to each (same "text" structure as before). And it updates the Chat with the following metadata:

podcast metadata

  • Chat record has a "meta" text field, a stringified JSON object, including
{
  "ts": number,
  "itemID": number,
  "sats_per_minute": number
}

Tip amount

  • owner Contact has a "tip_amount" BIGINT column
  • you can update it like normal updating owner Contact
Clone this wiki locally