Skip to main content

Interface: AccountAdapter

Defined in: packages/core/src/types.ts:110

Properties

model

readonly model: AccountModel
Defined in: packages/core/src/types.ts:111

Methods

assembleSignedEntry()

assembleSignedEntry(input): Promise<string>
Defined in: packages/core/src/types.ts:122 returns the SIGNED auth entry as base64 XDR.

Parameters

input
AssembleInput

Returns

Promise<string>

buildSessionInstallEntry()?

optional buildSessionInstallEntry(input): SorobanAuthorizationEntry
Defined in: packages/core/src/types.ts:126 Contract account model only: the UNSIGNED entry that installs a policy-scoped session signer (the account self-administers, authorized by the root signer at assemble time). Classic adapters omit it -> the session flow refuses with INVALID_CONFIG.

Parameters

input
SessionInstallInput

Returns

SorobanAuthorizationEntry

buildSessionRevokeEntry()?

optional buildSessionRevokeEntry(input): SorobanAuthorizationEntry
Defined in: packages/core/src/types.ts:128 Contract account model only: the UNSIGNED entry that revokes a session signer.

Parameters

input
SessionRevokeInput

Returns

SorobanAuthorizationEntry

buildUnsignedBatchEntry()

buildUnsignedBatchEntry(input): SorobanAuthorizationEntry
Defined in: packages/core/src/types.ts:120 Build ONE unsigned auth entry covering an atomic batch of calls. For N>1 it is the pinned Multicall router’s batch_transfer(payer, token, Vec<(to, amount)>) invocation with the N transfers as sub-invocations (one nonce, one signature for the whole batch - SAME shape for classic and contract, only the signer differs). A batch of 1 MUST equal buildUnsignedEntry of the same call (golden no-regression invariant).

Parameters

input
BuildBatchEntryInput

Returns

SorobanAuthorizationEntry

buildUnsignedEntry()

buildUnsignedEntry(input): SorobanAuthorizationEntry
Defined in: packages/core/src/types.ts:114

Parameters

input
BuildEntryInput

Returns

SorobanAuthorizationEntry

ensureReady()

ensureReady(input): Promise<void>
Defined in: packages/core/src/types.ts:113

Parameters

input
EnsureReadyInput

Returns

Promise<void>

resolveAddress()

resolveAddress(signer): Promise<string>
Defined in: packages/core/src/types.ts:112

Parameters

signer
BuckspaySigner

Returns

Promise<string>