1 unstable release

0.1.0-alpha.0 Dec 24, 2023

#33 in #metaplex

Custom license

69 lines

Metaplex Barista Interface

This crates defines the Service instruction required for integrating programs with Barista.

Getting started

From your project folder:

cargo add mpl-barista-interface


The interface between Barista and a program is defined by the Service instruction.

#[derive(SplDiscriminate, Default)]
pub struct ServiceInstruction;

This instruction takes the following required account:

  1. [signer] - the Barista account.
  2. [] - the owner of the Request account.
  3. [writable] - destination account.

The destination is the account owned by the target program. In addition to these accounts, any required account by the target program must be specified as remaining accounts.


~423K SLoC