Skip to main content

Interface: Keplr

Properties

defaultOptions

defaultOptions: KeplrIntereactionOptions

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:43


mode

Readonly mode: KeplrMode

mode means that how Keplr is connected. If the connected Keplr is browser's extension, the mode should be "extension". If the connected Keplr is on the mobile app with the embeded web browser, the mode should be "mobile-web".

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:42


version

Readonly version: string

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:36

Methods

changeKeyRingName

changeKeyRingName(opts): Promise<string>

Change wallet extension user name *

Parameters

NameType
optsObject
opts.defaultNamestring
opts.editable?boolean

Returns

Promise<string>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:122


disable

disable(chainIds?): Promise<void>

Delete permissions granted to origin. If chain ids are specified, only the permissions granted to each chain id are deleted (In this case, permissions such as getChainInfosWithoutEndpoints() are not deleted). Else, remove all permissions granted to origin (In this case, permissions that are not assigned to each chain, such as getChainInfosWithoutEndpoints(), are also deleted).

Parameters

NameTypeDescription
chainIds?string | string[]disable(Remove approve domain(s)) target chain ID(s).

Returns

Promise<void>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:53


enable

enable(chainIds): Promise<void>

Parameters

NameType
chainIdsstring | string[]

Returns

Promise<void>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:45


enigmaDecrypt

enigmaDecrypt(chainId, ciphertext, nonce): Promise<Uint8Array>

Parameters

NameType
chainIdstring
ciphertextUint8Array
nonceUint8Array

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:98


enigmaEncrypt

enigmaEncrypt(chainId, contractCodeHash, msg): Promise<Uint8Array>

Parameters

NameType
chainIdstring
contractCodeHashstring
msgobject

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:97


experimentalSignEIP712CosmosTx_v0

experimentalSignEIP712CosmosTx_v0(chainId, signer, eip712, signDoc, signOptions?): Promise<AminoSignResponse>

Sign the sign doc with ethermint's EIP-712 format. The difference from signEthereum(..., EthSignType.EIP712) is that this api returns a new sign doc changed by the user's fee setting and the signature for that sign doc. Encoding tx to EIP-712 format should be done on the side using this api. Not compatible with cosmjs. The returned signature is (r | s | v) format which used in ethereum. v should be 27 or 28 which is used in the ethereum mainnet regardless of chain.

Parameters

NameType
chainIdstring
signerstring
eip712Object
eip712.domainRecord<string, any>
eip712.primaryTypestring
eip712.typesRecord<string, undefined | { name: string ; type: string }[]>
signDocStdSignDoc
signOptions?KeplrSignOptions

Returns

Promise<AminoSignResponse>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:112


experimentalSuggestChain

experimentalSuggestChain(chainInfo): Promise<void>

Parameters

NameType
chainInfoChainInfo

Returns

Promise<void>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:44


getChainInfosWithoutEndpoints

getChainInfosWithoutEndpoints(): Promise<ChainInfoWithoutEndpoints[]>

Returns

Promise<ChainInfoWithoutEndpoints[]>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:120


getEnigmaPubKey

getEnigmaPubKey(chainId): Promise<Uint8Array>

Parameters

NameType
chainIdstring

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:95


getEnigmaTxEncryptionKey

getEnigmaTxEncryptionKey(chainId, nonce): Promise<Uint8Array>

Parameters

NameType
chainIdstring
nonceUint8Array

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:96


getEnigmaUtils

getEnigmaUtils(chainId): SecretUtils

Parameters

NameType
chainIdstring

Returns

SecretUtils

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:94


getKey

getKey(chainId): Promise<Key>

Parameters

NameType
chainIdstring

Returns

Promise<Key>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:54


getKeysSettled

getKeysSettled(chainIds): Promise<SettledResponses<Key>>

Parameters

NameType
chainIdsstring[]

Returns

Promise<SettledResponses<Key>>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:55


getOfflineSigner

getOfflineSigner(chainId, signOptions?): OfflineAminoSigner & OfflineDirectSigner

Parameters

NameType
chainIdstring
signOptions?KeplrSignOptions

Returns

OfflineAminoSigner & OfflineDirectSigner

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:89


getOfflineSignerAuto

getOfflineSignerAuto(chainId, signOptions?): Promise<OfflineAminoSigner | OfflineDirectSigner>

Parameters

NameType
chainIdstring
signOptions?KeplrSignOptions

Returns

Promise<OfflineAminoSigner | OfflineDirectSigner>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:91


getOfflineSignerOnlyAmino

getOfflineSignerOnlyAmino(chainId, signOptions?): OfflineAminoSigner

Parameters

NameType
chainIdstring
signOptions?KeplrSignOptions

Returns

OfflineAminoSigner

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:90


getSecret20ViewingKey

getSecret20ViewingKey(chainId, contractAddress): Promise<string>

Parameters

NameType
chainIdstring
contractAddressstring

Returns

Promise<string>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:93


sendTx

sendTx(chainId, tx, mode): Promise<Uint8Array>

Parameters

NameType
chainIdstring
txUint8Array
modeBroadcastMode

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:84


signAmino

signAmino(chainId, signer, signDoc, signOptions?): Promise<AminoSignResponse>

Parameters

NameType
chainIdstring
signerstring
signDocStdSignDoc
signOptions?KeplrSignOptions

Returns

Promise<AminoSignResponse>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:56


signArbitrary

signArbitrary(chainId, signer, data): Promise<StdSignature>

Parameters

NameType
chainIdstring
signerstring
datastring | Uint8Array

Returns

Promise<StdSignature>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:86


signDirect

signDirect(chainId, signer, signDoc, signOptions?): Promise<DirectSignResponse>

Parameters

NameTypeDescription
chainIdstring-
signerstring-
signDocObject-
signDoc.accountNumber?null | LongSignDoc accountNumber
signDoc.authInfoBytes?null | Uint8ArraySignDoc authInfoBytes
signDoc.bodyBytes?null | Uint8ArraySignDoc bodyBytes
signDoc.chainId?null | stringSignDoc chainId
signOptions?KeplrSignOptions-

Returns

Promise<DirectSignResponse>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:57


signDirectAux

signDirectAux(chainId, signer, signDoc, signOptions?): Promise<DirectAuxSignResponse>

Parameters

NameType
chainIdstring
signerstring
signDocObject
signDoc.accountNumber?null | Long
signDoc.bodyBytes?null | Uint8Array
signDoc.chainId?null | string
signDoc.publicKey?null | { typeUrl: string ; value: Uint8Array }
signDoc.sequence?null | Long
signDoc.tip?null | { amount: { amount: string ; denom: string }[] ; tipper: string }
signOptions?KeplrSignOptions

Returns

Promise<DirectAuxSignResponse>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:67


signEthereum

signEthereum(chainId, signer, data, type): Promise<Uint8Array>

Parameters

NameType
chainIdstring
signerstring
datastring | Uint8Array
typeEthSignType

Returns

Promise<Uint8Array>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:88


signICNSAdr36

signICNSAdr36(chainId, contractAddress, owner, username, addressChainIds): Promise<ICNSAdr36Signatures>

Parameters

NameType
chainIdstring
contractAddressstring
ownerstring
usernamestring
addressChainIdsstring[]

Returns

Promise<ICNSAdr36Signatures>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:85


suggestToken

suggestToken(chainId, contractAddress, viewingKey?): Promise<void>

Parameters

NameType
chainIdstring
contractAddressstring
viewingKey?string

Returns

Promise<void>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:92


verifyArbitrary

verifyArbitrary(chainId, signer, data, signature): Promise<boolean>

Parameters

NameType
chainIdstring
signerstring
datastring | Uint8Array
signatureStdSignature

Returns

Promise<boolean>

Defined in

node_modules/@keplr-wallet/types/build/wallet/keplr.d.ts:87