Interface: Relayer
Defined in: packages/core/src/types.ts:171Methods
buildOnboard()
buildOnboard(Defined in: packages/core/src/types.ts:178input):Promise<{xdr:string; }>
Parameters
input
publicKey
string
Returns
Promise<{ xdr: string; }>
deployContract()
deployContract(Defined in: packages/core/src/types.ts:180input):Promise<{address:string; }>
Parameters
input
passkeyPublicKey
string
Returns
Promise<{ address: string; }>
deploySessionAccount()?
Defined in: packages/core/src/types.ts:184 Deploy a policy-scoped session account bound to an ed25519 root key. OPTIONAL: a relayer that does not support session accounts omits it; the policy-account adapter then refuses to deploy with INVALID_CONFIG. POST /stellar/session-account/deployoptionaldeploySessionAccount(input):Promise<{address:string; }>
Parameters
input
rootPublicKey
string
Returns
Promise<{ address: string; }>
feeQuote()?
Defined in: packages/core/src/types.ts:176 Quote the fee-token amount + forwarder/collector for paying Soroban gas inoptionalfeeQuote(input):Promise<FeeQuote>
token (gas mode “token”).
OPTIONAL: a relayer that does not support gas-in-token omits it; prepare() then refuses token mode
with INVALID_CONFIG. Keeping it optional makes adding token gas additive (non-breaking). POST /fee/quote
Parameters
input
calls
Call[]
from
string
token
string
Returns
Promise<FeeQuote>
getAccountState()
getAccountState(Defined in: packages/core/src/types.ts:177address):Promise<AccountState>
Parameters
address
string
Returns
Promise<AccountState>
quoteSwap()?
Defined in: packages/core/src/types.ts:188 STRETCH: gasless swap via the facilitator’s EXISTING /swap/* rail. OPTIONAL - a relayer without swap support (no swapChain) omits these;optionalquoteSwap(req):Promise<SwapQuote>
BuckspayClient.swap then fails closed with
SWAP_FAILED.
Parameters
req
SwapQuoteRequest
Returns
Promise<SwapQuote>
relay()
relay(Defined in: packages/core/src/types.ts:172payload):Promise<Receipt>
Parameters
payload
RelayPayload
Returns
Promise<Receipt>
submitOnboard()
submitOnboard(Defined in: packages/core/src/types.ts:179input):Promise<{ok:boolean; }>
Parameters
input
publicKey
string
signedTxXdr
string
Returns
Promise<{ ok: boolean; }>
swap()?
Defined in: packages/core/src/types.ts:189optionalswap(req):Promise<Receipt>
Parameters
req
SwapRequest
Returns
Promise<Receipt>
