A connector is a signing backend: it determines how an operation runs and which custodian holds your account keys. Each is constructed and authenticated on its own, then passed to the client constructed by simpleXRPL in a signers array. simpleXRPL supports these connectors:
Every connector implements the Custodian interface. Once constructed, it exposes these fields and methods:
| Field | Type | Description |
|---|---|---|
kind | CustodianKind | The backend the connector adapts: local, ripple-custody, palisade-custody, or external. |
primary | AccountRef | The connector's primary account reference. Used when a vertical operation runs without an explicit account. |
primary.address | string | The primary account's XRPL r-address. |
primary.custodianRef | CustodianRef | (Optional) The connector's opaque native id for the account. |
List the accounts the connector holds.
connector.listAccounts(): Promise<Account[]>listAccounts takes no arguments.
Resolves to an array of Account records the connector discovered and can sign for.
const accounts = await connector.listAccounts()
console.log(accounts.map((account) => account.address))