Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessageService

Index

Constructors

constructor

Properties

decoder

decoder: TextDecoder = ...

encoder

encoder: TextEncoder = ...

Methods

buildAuthInfo

  • buildAuthInfo(signerInfo: SignerInfo, feeDenom: SupportedDenoms, feeEstimate?: number, gasEstimate: number): AuthInfo

buildBroadcastTxRequest

  • buildBroadcastTxRequest(msgAny: Any | Any[], account: BaseAccount, chainId: string, wallet: Wallet, feeEstimate: number, memo?: string, feeDenom?: SupportedDenoms, gasEstimate: number): BroadcastTxRequest

buildCalculateTxFeeRequest

  • buildCalculateTxFeeRequest(msgAny: Any | Any[], account: BaseAccount, chainId: string, wallet: Wallet, memo?: string, feeDenom?: SupportedDenoms, gasPrice: number, gasAdjustment?: number): CalculateTxFeesRequest
  • Parameters

    • msgAny: Any | Any[]
    • account: BaseAccount
    • chainId: string
    • wallet: Wallet
    • memo: string = ''
    • feeDenom: SupportedDenoms = 'nhash'
    • gasPrice: number
    • gasAdjustment: number = 1.25

    Returns CalculateTxFeesRequest

buildMessage

buildSignDoc

  • buildSignDoc(accNumber: number, chainId: string, txRaw: TxRaw): SignDoc

buildSignerInfo

  • buildSignerInfo(baseAccount: BaseAccount, pubKeyBytes: Uint8Array): SignerInfo

buildSimulateRequest

  • buildSimulateRequest(msgAny: Any | Any[], account: BaseAccount, chainId: string, wallet: Wallet, memo?: string, feeDenom?: SupportedDenoms, gasPrice: number): SimulateRequest

buildTxBody

  • buildTxBody(msgAny: Any | Any[], memo: string): TxBody

createAnyMessageBase64

msgAnyB64toAny

  • msgAnyB64toAny(msgAnyB64: string): Any

sha256

  • sha256(bytes: Uint8Array): Uint8Array

signBytes

  • signBytes(bytes: Uint8Array, privateKey: Uint8Array): Uint8Array

unpackDisplayObjectFromWalletMessage

Generated using TypeDoc