Skip to main content

References

Enumerations

EnumerationDescription
CryptoErrorTypeError types for cryptographic operations.
IFrameApiErrorTypeError types for iframe API integration.
JwtErrorTypeError types for JWT handling and validation.
SdkErrorTypesEnum representing all possible SDK error types.

Classes

ClassDescription
CryptoErrorError thrown when a cryptographic operation fails.
IFrameApiErrorError thrown by the iframe API server/client layer.
JwtErrorError thrown when JWT validation fails or a token is malformed.
KeybanAccountAbstract account bound to a specific chain implementation (EVM, Starknet, Stellar). Provides methods to sign messages and to transfer/estimate fees for native currency, ERC‑20-like tokens, and NFTs, when supported by the target network. Obtain an instance via KeybanClient.initialize.
KeybanBaseErrorThe KeybanBaseError class serves as the foundational structure for all custom errors within the Keyban SDK. It extends the native JavaScript Error class, providing additional properties to enrich error handling with more context and information.
KeybanClientMain client for interacting with the Keyban API and associated services. This class provides methods to initialize accounts, retrieve balances, query NFTs, and interact with the Keyban blockchain.
SdkErrorClass representing an SDK-specific error.

Interfaces

InterfaceDescription
ClientShareProviderRepresents a storage provider for the client share.
IAccountServiceAccount service.
IApplicationServiceApplication service.
IAuthServiceAuthentication service.
IClientShareStorageServiceStorage for persisting and retrieving the MPC client share on the integrator side.
IDppServiceDigital Product Passport (DPP) operations.
IKeybanApiAggregated API surface exposed through the iframe transport.
ILoyaltyServiceLoyalty operations for wallet passes and tier retrieval.
ISignerServiceMPC signer for a given curve (ECDSA/EdDSA).

Type Aliases

Type AliasDescription
AccountComplete on-chain account information returned by the Keyban API.
AccountAssignmentPending loyalty assignment created before an account exists.
AddressRepresents an Ethereum address in hexadecimal format.
ApplicationApplication configuration and metadata.
ApplicationFeatureString literal union of the supported application features.
ApplicationThemeModeString literal union describing the theme mode options.
AuthConnectionRepresents the types of authentication connections available.
AuthSendOtpArgsArguments for sending a One-Time Password (OTP).
AuthSignInArgsArguments for signing in a user.
AuthSignUpArgsArguments for signing up a user using email and password.
AuthUpdateUserArgs-
AuthUserAuthenticated user profile.
BalanceRepresents a balance with optional metadata.
CurrencyString literal union of supported loyalty currencies.
DppClaimPermissionPermission record allowing a specific user/email to claim a DPP.
DppClaimResultResult of a DPP claim operation.
DppProductSheetProduct sheet template for Digital Product Passports.
DppProductSheetStatusString literal union of the DPP product sheet statuses.
EstimateERC20TransferParamsParameters to estimate an ERC‑20 transfer, without fees. Derived from TransferERC20Params by omitting fees.
EstimateNftTransferParamsParameters to estimate an NFT transfer, without fees. Derived from TransferNftParams by omitting fees.
EvmFeeDetailsEIP‑1559 fee parameters for EVM transactions. Used by EVM account transfer methods to override gas pricing when needed.
EvmNetworkAllowed EVM network identifiers.
FeeDetails-
FeesEstimationRepresents a transaction fee estimation returned by estimation methods. The concrete shape of the details field depends on the underlying network: - EVM chains: EvmFeeDetails (EIP-1559 fields) - Stellar: StellarFeeDetails (fee per operation as string)
FeesUnitRepresents the unit of fees in a specific blockchain.
HashRepresents a cryptographic hash value in hexadecimal format.
HexRepresents a hexadecimal value in blockchain-related contexts.
KeybanApiStatus-
KeybanAssetTransfer-
KeybanClientConfigConfiguration options for initializing the Keyban client.
KeybanNft-
KeybanNftBalance-
KeybanOrder-
KeybanToken-
KeybanTokenBalance-
LoyaltyRewardTierLoyalty reward tier definition.
NativeCurrencyRepresents the native currency of a blockchain network.
NetworkUnion across every supported blockchain runtime.
ObjectEnum-
ObjectPaths-
Order-
OrderItem-
PaginationArgsArguments for paginating a collection.
Prettify-
ProductSheetDetailStatsDetailed statistics for a DPP product sheet.
ProductSheetStatsAggregated statistics for all DPP product sheets at organization level.
StarknetNetworkAllowed Starknet network identifiers.
StellarFeeDetailsStellar fee per operation represented as a string in stroops. In congestion, Horizon exposes a higher mode fee; otherwise it's the base fee (100 stroops).
StellarNetworkAllowed Stellar network identifiers.
TimeSeriesDataPointTime series data point for tracking product sheet creation trends over time.
TransferERC20ParamsParameters for transferring ERC‑20-like fungible tokens.
TransferNftParamsParameters for transferring NFTs (ERC‑721 / ERC‑1155 on EVM chains).

Variables

VariableDescription
ApplicationFeatureFlags describing which product surfaces (DPP or Loyalty) are enabled for a given application. Used throughout the SDK to flip UI and API capabilities.
ApplicationThemeModeEnumerates the supported UI presentation modes for hosted applications. Typedoc consumers rely on this union to toggle light/dark specific assets.
CurrencyLimited list of fiat currencies supported by the loyalty engine for point accrual and redemption calculations.
DppProductSheetStatusWorkflow states describing where a Digital Product Passport sheet sits in the publication lifecycle.
EvmNetworkCanonical blockchain network identifiers supported by Keyban across EVM, Starknet, and Stellar stacks. These unions align with backend configuration keys and Tilt profiles to prevent drift.
NetworkNormalized lookup that collapses duplicated enum values (e.g. both Starknet/Stellar define Mainnet) into a single Record consumable by Zod.
StarknetNetwork-
StellarNetwork-

Functions

FunctionDescription
formatBalanceFormat a balance using the client's native/fee units or the token metadata.