Skip to main content
POST
Returns the unsigned transaction that registers waiting admissions of one profile on its eligibility register. A wallet of your instance that is an agent of the register signs and broadcasts it, then Confirm Admission records the result. Trusset holds no key and sends nothing. Only a register in the REGISTER mode can be built for. A profile bound to your instance register, or to a register managed outside Trusset, is refused. See Which registers can be signed here.

Body Parameters

string
The profile, by key. Matched exactly, then in upper and lower case. Send this or profileId.
string
The profile, by id. Used instead of profileKey when both are sent.
string
required
The wallet that will sign. It must be a verified Ethereum wallet of your instance and an agent of the register. The transaction is simulated from it before anything is returned.
string[]
Only these admissions, by id. Up to 200 are read, and an id that is not a PENDING admission of this profile is ignored.
string[]
Only the admissions of these wallets. Up to 200 are read, and malformed addresses are dropped. Sent together with ids, an admission must match both.
Without ids or wallets, the oldest waiting admissions of the profile are used. One call builds at most 50. Build again after confirming for the rest.

What is checked

The checks run in this order, and the first that fails refuses the call:
  1. signerAddress is a verified wallet of your instance (SIGNER_NOT_INSTANCE_WALLET).
  2. The profile has a register, the register answers isVerified(address) with a single bool, and its mode is REGISTER (ELIGIBILITY_ADMISSION_INSTANCE_REGISTER, ELIGIBILITY_ADMISSION_EXTERNAL).
  3. signerAddress is an agent of the register (ELIGIBILITY_AGENT_REQUIRED). The message names the wallets that are.
  4. At least one admission is waiting among the ones selected (NOTHING_TO_ADMIT).
Then each admission is checked against your instance register and the eligibility register. An admission that fails is left out of the transaction and reported in skipped: Every remaining wallet is registered with the ONCHAINID and the country your instance register holds for it, so the eligibility register reads the same identity and claims. Last, the transaction is simulated from signerAddress. When it would revert, the call is refused with ELIGIBILITY_TX_WOULD_REVERT and nothing is returned to sign.

Response Fields

object

Error Codes