Skip to main content

References

Enumerations

EnumerationDescription
KeybanChainThe KeybanChain enumeration defines the various blockchain networks supported by the Keyban SDK. Each member of the enumeration represents a specific blockchain network identified by its unique name.
SdkErrorTypesEnum representing all possible SDK error types.

Classes

ClassDescription
KeybanAccountThe KeybanAccount class represents a user's account in the Keyban system. It provides methods to interact with the blockchain, including signing messages, fetching balances, transferring tokens, and estimating transaction costs.
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
FeesUnitRepresents the unit of fees in a specific blockchain.

Type Aliases

Type aliasDescription
AddressRepresents an Ethereum address in hexadecimal format.
BalanceRepresents a balance with optional metadata.
EncryptedDataType representing the encrypted data.
EstimateERC20TransferParamsRepresents the parameters required to estimate an ERC20 token transfer, excluding the transaction options.
EstimateNftTransferParamsParameters required to estimate the transfer of an NFT, excluding transaction options.
FeesEstimationRepresents the estimation of fees for a transaction.
GqlwalletTokenBalancesQuery-
HashRepresents a cryptographic hash value in hexadecimal format.
HexRepresents a hexadecimal value in blockchain-related contexts.
KeybanApiStatusRepresents the status of the Keyban API.
KeybanAssetTransfer-
KeybanClientConfigConfiguration options for the Keyban client.
KeybanNftBalance-
KeybanToken-
KeybanTokenBalance-
PaginationArgsArguments for paginating a collection.
TransactionOptionsRepresents the options for a transaction. see KeybanAccount#transfer
TransferERC20ParamsRepresents the parameters for transferring ERC20 tokens.
TransferNftParamsRepresents the parameters for transferring ERC721 and ERC1155 tokens.

Functions

FunctionDescription
decryptDecrypts the given encrypted data using the provided key.
encryptEncrypts the given data using the provided JsonWebKey.
formatBalanceFormats the balance into a human-readable string with the appropriate decimals and symbol.
generateKeyGenerates a cryptographic key and exports it in JSON Web Key (JWK) format.