Skip to content
Open app

Venues

A venue registers a deposit address and the sets it accepts. A withdrawal to that address has to prove membership in one of them.

A venue is anyone who receives Plaza withdrawals and wants to say which money they take, such as an exchange at its deposit address. Registering puts the venue's rule on chain, and transact enforces it on every withdrawal to that address.

The venue account

register_venue creates a Venue account at the address derived from ["venue", destination], where destination is the deposit address withdrawals arrive at. Both the venue's authority and the destination sign the registration, so nobody can attach a rule to an address they don't hold.

FieldWhat it is
authorityThe wallet that may change the accepted list
destinationThe deposit address
acceptedUp to 32 ASP accounts, none listed twice

set_accepted replaces the whole list. An empty list is allowed and refuses every withdrawal to that address.

What a withdrawal checks

For every spend that moves funds out, transact derives the venue account for the destination:

  • If a venue is registered there, the set the spend proved against must be in accepted, or the program refuses with VenueRefused.
  • If nothing is registered there, the withdrawal goes through on any set.

The rule lives in the program, so a venue doesn't have to trust the API, the relayer or the holder's client to enforce it.

In the app

When a holder types a destination, the app asks GET /venues/{address}. For a venue, it shows the venue's name and offers the sets the venue accepts that also approve the holder's note. /venues lists every venue with its accepted sets.

To register one, see Accept sets as a venue.