MsgGrant is a request type for Grant method. It declares authorization to the grantee on behalf of the granter with the provided expiration time.
MsgRevoke revokes any authorization with the provided sdk.Msg type on the granter's account with that has been granted to the grantee.
MsgMultiSend represents an arbitrary multi-in, multi-out send message.
MsgSend represents a message to send coins from one account to another.
Sign and broadcast a transaction to Secret Network.
Options for signing and broadcasting
E.g. gasPriceInFeeDenom=0.1 & feeDenom="uscrt" => Total fee for tx is 0.1 * gasLimit
uscrt.
If false returns immediately with transactionHash
. Defaults to true
.
How much time (in milliseconds) to wait for tx to commit on-chain. Ignored if waitForCommit = false
.
When waiting for the tx to commit on-chain, how much time (in milliseconds) to wait between checks. Smaller intervals will cause more load on your node provider. Keep in mind that blocks on Secret Network take about 6 seconds to finalize. Ignored if waitForCommit = false
.
If BroadcastMode.Sync - Broadcast transaction to mempool and wait for CheckTx response.
explicitSignerData can be used to override chainId
, accountNumber
& accountSequence
. This is useful when using BroadcastMode.Async or when you don't want secretjs to query for accountNumber
& accountSequence
from the chain. (smoother in UIs, less load on your node provider).
A list of messages, executed sequentially. If all messages succeeds then the transaction succeed, and the resulting TxResponse object will have code = 0
. If at lease one message fails, the entire transaction is reverted and TxResponse code
field will not be 0
.
List of possible Msgs:
Sign and broadcast a transaction to Secret Network.
A list of messages, executed sequentially. If all messages succeeds then the transaction succeed, and the resulting TxResponse object will have code = 0
. If at lease one message fails, the entire transaction is reverted and TxResponse code
field will not be 0
.
List of possible Msgs:
Optional
txOptions: TxOptionsBroadcast a signed transactions
Signed transaction bytes, can be the output of signTx()
An optional object of transaction options
Broadcast a signed transactions
Signed transaction bytes, can be the output of signTx()
Optional
txOptions: TxOptionsAn optional object of transaction options
Execute a function on a contract
Instantiate a contract from code id
Upload a compiled contract to Secret Network
MsgVerifyInvariant represents a message to verify a particular invariance.
MsgFundCommunityPool allows an account to directly fund the community pool.
MsgWithdrawValidatorCommission withdraws the full commission to the validator address.
MsgSetWithdrawAddress sets the withdraw address for a delegator (or validator self-delegation).
MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator from a single validator.
MsgWithdrawValidatorCommission withdraws the full commission to the validator address.
MsgSubmitEvidence represents a message that supports submitting arbitrary Evidence of misbehavior such as equivocation or counterfactual signing.
MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter.
MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.
MsgDeposit defines a message to submit a deposit to an existing proposal.
MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.
MsgVote defines a message to cast a vote.
MsgVoteWeighted defines a message to cast a vote, with an option to split the vote.
MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between ICS20 enabled chains. See ICS Spec here: https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures
Prepare and sign an array of messages as a transaction
Array of messages to prepare and sign
An optional object of transaction options
Returns a Promise that resolves txBytes, which can be passed into broadcastSignedTx().
Prepare and sign an array of messages as a transaction
Returns a Promise that resolves txBytes, which can be passed into broadcastSignedTx().
Simulates a transaction on the node without broadcasting it to the chain.
Can be used to get a gas estimation or to see the output without actually committing a transaction on-chain.
The input should be exactly how you'd use it in broadcast
.
WARNING: MsgInstantiateContract
& MsgExecuteContract
simulation is not supported for security reasons!
Simulates a transaction on the node without broadcasting it to the chain.
Can be used to get a gas estimation or to see the output without actually committing a transaction on-chain.
The input should be exactly how you'd use it in broadcast
.
WARNING: MsgInstantiateContract
& MsgExecuteContract
simulation is not supported for security reasons!
MsgUnjail defines a message to release a validator from jail.
MsgBeginRedelegate defines an SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.
MsgCreateValidator defines an SDK message for creating a new validator.
MsgDelegate defines an SDK message for performing a delegation of coins from a delegator to a validator.
MsgEditValidator defines an SDK message for editing an existing validator.
MsgUndelegate defines an SDK message for performing an undelegation from a delegate and a validator
MsgCreateVestingAccount defines a message that enables creating a vesting account.
Generated using TypeDoc
MsgExec attempts to execute the provided messages using authorizations granted to the grantee. Each message should have only one signer corresponding to the granter of the authorization.