Open the app

Get admitted

Request admission as a holder or an issuer and sign it once it is approved.

Admission creates your Member account, and every action on the register waits for it: until then the app shows the register but nothing can be signed. Holders and issuers are admitted the same way; Admission explains the operator's part.

Before you start

  • A Solana wallet with SOL for the member account's rent and the network fee. On Mainnet, the Get test USD button at the top of the Admission page sends SOL along with test USD, before you are admitted.
  • The name of the entity you are admitting, at most 80 UTF-8 bytes. It is shown beside your wallet on the register and can't be changed later.
  • Your role. Choose Issuer only if you will list instruments; an issuer can do everything a holder can.

In the app

  1. Connect

    Open /app and choose your wallet under Connect a wallet. Until you are admitted, the account page shows Admission, with the steps Connected, Requested and Admitted.

  2. Request admission

    Enter the entity name, choose Holder or Issuer and press Sign and request admission. Your wallet signs the request as a message; nothing goes on chain, so it costs nothing.

  3. Wait for approval

    On Mainnet the request is approved at once. Where the operator reviews requests, your admission can be signed once it approves. A declined request shows Admission declined with the operator's reason; to ask again, change the entity name or the role and sign again, since the same request gets the same decision.

  4. Sign your admission

    Press Review admission, then Sign admission. Your wallet signs, the operator's key co-signs, and the account page opens on your cash, positions, offers and repos.

Through the API

ts
import { admissionMessage } from '@agora/contract'

const body = { wallet, entity: 'Meridian Fund', role: 'holder' as const, signedAt: new Date().toISOString() }
await api.requestAdmission({ ...body, signature: await signMessage(admissionMessage(body)) })

// Later, or at once where admissionMode is "instant":
const { admission } = await api.account(wallet)
if (admission.state === 'pending' && admission.approved) {
  await send(await api.buildAdmit({ wallet }), sign)
}

The request carries your wallet's signature over its entity, role and time, made within the last ten minutes (the text it signs). send and signMessage are from A first settlement. Submit the admission in relay mode: its build has cosigned: true, and the API adds the operator's signature before sending it.

What it ends in

A Member account at the address derived from "member" and your wallet, with your role, entity name and admission time. The settlement is the kind admission. Your account's admission.state is admitted.

If it fails

  • The build is refused until the request is approved.
  • BadName: the entity name is empty or longer than 80 bytes.
  • WrongOperator: the transaction names an operator other than the ledger's. Build it through the API, which names the ledger's operator and adds its signature when you submit in relay mode.
  • UNAUTHORIZED from the request: it was signed by another key. VALIDATION_ERROR on signedAt: the signature is more than ten minutes old; sign again.
  • A wallet that is already admitted can't be admitted again: its Member account exists.