transactions

Get transaction messages

Changed on

Returns a paginated list of Cosmos SDK messages contained in the transaction identified by the given hash.

get/tx/{hash}/messages

Request

  • Base URL
    api-mainnet.celenium.io (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header apikey

Path parameters

hashstring required

Transaction hash in hexadecimal

Query parameters

limitinteger

Count of requested entities

offsetinteger

Offset

Response

OK

dataobject
heightinteger
idinteger
positioninteger
sizeinteger
timestring date-time
tx_idinteger
type'MsgUnknown' | 'MsgSetWithdrawAddress' | 'MsgWithdrawDelegatorReward' | 'MsgWithdrawValidatorCommission' | 'MsgFundCommunityPool' | 'MsgCreateValidator' | 'MsgEditValidator' | 'MsgDelegate' | 'MsgBeginRedelegate' | 'MsgUndelegate' | 'MsgCancelUnbondingDelegation' | 'MsgUnjail' | 'MsgSend' | 'MsgMultiSend' | 'MsgCreateVestingAccount' | 'MsgCreatePermanentLockedAccount' | 'MsgCreatePeriodicVestingAccount' | 'MsgPayForBlobs' | 'MsgGrant' | 'MsgExec' | 'MsgRevoke' | 'MsgGrantAllowance' | 'MsgRevokeAllowance' | 'MsgRegisterEVMAddress' | 'MsgSubmitProposal' | 'MsgExecLegacyContent' | 'MsgVote' | 'MsgVoteWeighted' | 'MsgDeposit' | 'IBCTransfer' | 'MsgVerifyInvariant' | 'MsgSubmitEvidence' | 'MsgSendNFT' | 'MsgCreateGroup' | 'MsgUpdateGroupMembers' | 'MsgUpdateGroupAdmin' | 'MsgUpdateGroupMetadata' | 'MsgCreateGroupPolicy' | 'MsgUpdateGroupPolicyAdmin' | 'MsgCreateGroupWithPolicy' | 'MsgUpdateGroupPolicyDecisionPolicy' | 'MsgUpdateGroupPolicyMetadata' | 'MsgSubmitProposalGroup' | 'MsgWithdrawProposal' | 'MsgVoteGroup' | 'MsgExecGroup' | 'MsgLeaveGroup' | 'MsgSoftwareUpgrade' | 'MsgCancelUpgrade' | 'MsgRegisterInterchainAccount' | 'MsgSendTx' | 'MsgRegisterPayee' | 'MsgRegisterCounterpartyPayee' | 'MsgPayPacketFee' | 'MsgPayPacketFeeAsync' | 'MsgTransfer' | 'MsgCreateClient' | 'MsgUpdateClient' | 'MsgUpgradeClient' | 'MsgSubmitMisbehaviour' | 'MsgRecoverClient' | 'MsgIBCSoftwareUpgrade' | 'MsgUpdateParams' | 'MsgConnectionOpenInit' | 'MsgConnectionOpenTry' | 'MsgConnectionOpenAck' | 'MsgConnectionOpenConfirm' | 'MsgChannelOpenInit' | 'MsgChannelOpenTry' | 'MsgChannelOpenAck' | 'MsgChannelOpenConfirm' | 'MsgChannelCloseInit' | 'MsgChannelCloseConfirm' | 'MsgRecvPacket' | 'MsgTimeout' | 'MsgTimeoutOnClose' | 'MsgAcknowledgement' | 'MsgSignalVersion' | 'MsgTryUpgrade' | 'MsgCreateMailbox' | 'MsgProcessMessage' | 'MsgSetMailbox' | 'MsgCreateCollateralToken' | 'MsgCreateSyntheticToken' | 'MsgSetToken' | 'MsgEnrollRemoteRouter' | 'MsgUnrollRemoteRouter' | 'MsgRemoteTransfer' | 'MsgUpdateMinfeeParams' | 'MsgCreateIgp' | 'MsgSetIgpOwner' | 'MsgSetDestinationGasConfig' | 'MsgPayForGas' | 'MsgClaim' | 'MsgCreateMerkleTreeHook' | 'MsgCreateNoopHook' | 'MsgCreateMessageIdMultisigIsm' | 'MsgCreateMerkleRootMultisigIsm' | 'MsgCreateNoopIsm' | 'MsgAnnounceValidator' | 'MsgCreateRoutingIsm' | 'MsgSetRoutingIsmDomain' | 'MsgRemoveRoutingIsmDomain' | 'MsgUpdateRoutingIsmOwner' | 'MsgUpdateBlobParams' | 'MsgPruneExpiredGrants' | 'MsgSetSendEnabled' | 'MsgAuthorizeCircuitBreaker' | 'MsgResetCircuitBreaker' | 'MsgTripCircuitBreaker' | 'MsgModuleQuerySafe' | 'MsgForward' | 'MsgCreateInterchainSecurityModule' | 'MsgUpdateInterchainSecurityModule' | 'MsgSubmitMessages' | 'MsgDepositToEscrow' | 'MsgRequestWithdrawal' | 'MsgPayForFibre' | 'MsgPaymentPromiseTimeout' | 'MsgUpdateFibreParams' | 'MsgSetFibreProviderInfo' | 'MsgCancelProposal'

Example response

[
  {
    "height": 100,
    "id": 321,
    "position": 2,
    "size": 2,
    "time": "2023-07-04T03:10:57+00:00",
    "tx": {
      "codespace": "sdk",
      "events_count": 2,
      "fee": "9348",
      "gas_used": 4253,
      "gas_wanted": 9348,
      "hash": "652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF",
      "height": 100,
      "id": 321,
      "memo": "Transfer to private account",
      "message_types": [
        "MsgSend",
        "MsgUnjail"
      ],
      "messages_count": 1,
      "position": 11,
      "signers": [
        {
          "celestials": {
            "image_url": "https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC",
            "name": "name",
            "primary": true,
            "status": "VERIFIED"
          },
          "hash": "celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60"
        }
      ],
      "time": "2023-07-04T03:10:57+00:00"
    },
    "tx_id": 11
  }
]

Changes