Search
Preparing search index...
The search index is not available
@provenanceio/wallet-lib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@provenanceio/wallet-lib
MessageService
Class MessageService
Hierarchy
MessageService
Index
Constructors
constructor
Properties
decoder
encoder
Methods
build
Auth
Info
build
Broadcast
TxRequest
build
Calculate
TxFee
Request
build
Message
build
Sign
Doc
build
Signer
Info
build
Simulate
Request
build
TxBody
create
Any
Message
Base64
msg
Any
B64to
Any
sha256
sign
Bytes
unpack
Display
Object
From
Wallet
Message
Constructors
constructor
new
Message
Service
(
)
:
MessageService
Returns
MessageService
Properties
decoder
decoder
:
TextDecoder
= ...
encoder
encoder
:
TextEncoder
= ...
Methods
build
Auth
Info
build
Auth
Info
(
signerInfo
:
SignerInfo
, feeDenom
:
SupportedDenoms
, feeEstimate
?:
number
, gasEstimate
:
number
)
:
AuthInfo
Parameters
signerInfo:
SignerInfo
feeDenom:
SupportedDenoms
feeEstimate:
number
= 0
gasEstimate:
number
Returns
AuthInfo
build
Broadcast
TxRequest
build
Broadcast
TxRequest
(
msgAny
:
Any
|
Any
[]
, account
:
BaseAccount
, chainId
:
string
, wallet
:
Wallet
, feeEstimate
:
number
, memo
?:
string
, feeDenom
?:
SupportedDenoms
, gasEstimate
:
number
)
:
BroadcastTxRequest
Parameters
msgAny:
Any
|
Any
[]
account:
BaseAccount
chainId:
string
wallet:
Wallet
feeEstimate:
number
memo:
string
= ''
feeDenom:
SupportedDenoms
= 'nhash'
gasEstimate:
number
Returns
BroadcastTxRequest
build
Calculate
TxFee
Request
build
Calculate
TxFee
Request
(
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
build
Message
build
Message
(
type
:
ReadableMessageNames
, params
:
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
MsgExecuteContractParams
|
MsgGrantDisplay
|
MsgSubmitEvidenceDisplay
|
MsgSubmitProposalDisplay
|
MsgCreateValidatorDisplay
)
:
Message
Parameters
type:
ReadableMessageNames
params:
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
AsObject
|
MsgExecuteContractParams
|
MsgGrantDisplay
|
MsgSubmitEvidenceDisplay
|
MsgSubmitProposalDisplay
|
MsgCreateValidatorDisplay
Returns
Message
build
Sign
Doc
build
Sign
Doc
(
accNumber
:
number
, chainId
:
string
, txRaw
:
TxRaw
)
:
SignDoc
Parameters
accNumber:
number
chainId:
string
txRaw:
TxRaw
Returns
SignDoc
build
Signer
Info
build
Signer
Info
(
baseAccount
:
BaseAccount
, pubKeyBytes
:
Uint8Array
)
:
SignerInfo
Parameters
baseAccount:
BaseAccount
pubKeyBytes:
Uint8Array
Returns
SignerInfo
build
Simulate
Request
build
Simulate
Request
(
msgAny
:
Any
|
Any
[]
, account
:
BaseAccount
, chainId
:
string
, wallet
:
Wallet
, memo
?:
string
, feeDenom
?:
SupportedDenoms
, gasPrice
:
number
)
:
SimulateRequest
deprecated
use buildCalculateTxFeeRequest instead
Parameters
msgAny:
Any
|
Any
[]
account:
BaseAccount
chainId:
string
wallet:
Wallet
memo:
string
= ''
feeDenom:
SupportedDenoms
= 'nhash'
gasPrice:
number
Returns
SimulateRequest
build
TxBody
build
TxBody
(
msgAny
:
Any
|
Any
[]
, memo
:
string
)
:
TxBody
Parameters
msgAny:
Any
|
Any
[]
memo:
string
Returns
TxBody
create
Any
Message
Base64
create
Any
Message
Base64
(
type
:
ReadableMessageNames
, msg
:
Message
)
:
string
Parameters
type:
ReadableMessageNames
msg:
Message
Returns
string
msg
Any
B64to
Any
msg
Any
B64to
Any
(
msgAnyB64
:
string
)
:
Any
Parameters
msgAnyB64:
string
Returns
Any
sha256
sha256
(
bytes
:
Uint8Array
)
:
Uint8Array
Parameters
bytes:
Uint8Array
Returns
Uint8Array
sign
Bytes
sign
Bytes
(
bytes
:
Uint8Array
, privateKey
:
Uint8Array
)
:
Uint8Array
Parameters
bytes:
Uint8Array
privateKey:
Uint8Array
Returns
Uint8Array
unpack
Display
Object
From
Wallet
Message
unpack
Display
Object
From
Wallet
Message
(
anyMsgBase64
:
string
)
:
MsgExecuteContractDisplay
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
AsObject
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
GenericDisplay
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
AsObject
&
{
proposalType
:
undefined
|
"TextProposal"
|
"SoftwareUpgradeProposal"
|
"CancelSoftwareUpgradeProposal"
|
"StoreCodeProposal"
|
"InstantiateCodeProposal"
|
"ParameterChangeProposal"
}
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
MsgVoteWeighted
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
Parameters
anyMsgBase64:
string
Returns
MsgExecuteContractDisplay
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
AsObject
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
GenericDisplay
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
AsObject
&
{
proposalType
:
undefined
|
"TextProposal"
|
"SoftwareUpgradeProposal"
|
"CancelSoftwareUpgradeProposal"
|
"StoreCodeProposal"
|
"InstantiateCodeProposal"
|
"ParameterChangeProposal"
}
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
&
MsgVoteWeighted
&
{
typeName
:
ReadableMessageNames
|
FallbackGenericMessageName
}
Exports
Message
Service
constructor
decoder
encoder
build
Auth
Info
build
Broadcast
TxRequest
build
Calculate
TxFee
Request
build
Message
build
Sign
Doc
build
Signer
Info
build
Simulate
Request
build
TxBody
create
Any
Message
Base64
msg
Any
B64to
Any
sha256
sign
Bytes
unpack
Display
Object
From
Wallet
Message
Generated using
TypeDoc
use buildCalculateTxFeeRequest instead