Enum Class RequestType

java.lang.Object
java.lang.Enum<RequestType>
com.hedera.hashgraph.sdk.RequestType
All Implemented Interfaces:
Serializable, Comparable<RequestType>, Constable

public enum RequestType extends Enum<RequestType>
Enum for the request types.
  • Enum Constant Details

    • NONE

      public static final RequestType NONE
      FUTURE - Uncomment when https://github.com/hashgraph/pbj/issues/339 is fixed; currently the PBJ-generated unit tests fail when using reserved ordinals reserved 96, 97, 98, 99; Unused - The first value is unused because this default value is ambiguous with an "unset" value and therefore should not be used.
    • CRYPTO_TRANSFER

      public static final RequestType CRYPTO_TRANSFER
      Transfer tokens among accounts.
    • CRYPTO_UPDATE

      public static final RequestType CRYPTO_UPDATE
      Update an account.
    • CRYPTO_DELETE

      public static final RequestType CRYPTO_DELETE
      Delete an account.
    • CRYPTO_ADD_LIVE_HASH

      public static final RequestType CRYPTO_ADD_LIVE_HASH
      Add a livehash to an account
    • CRYPTO_DELETE_LIVE_HASH

      public static final RequestType CRYPTO_DELETE_LIVE_HASH
      Delete a livehash from an account
    • CONTRACT_CALL

      public static final RequestType CONTRACT_CALL
      Execute a smart contract call.
    • CONTRACT_CREATE

      public static final RequestType CONTRACT_CREATE
      Create a smart contract.
    • CONTRACT_UPDATE

      public static final RequestType CONTRACT_UPDATE
      Update a smart contract.
    • FILE_CREATE

      public static final RequestType FILE_CREATE
      Create a "file" stored in the ledger.
    • FILE_APPEND

      public static final RequestType FILE_APPEND
      Append data to a "file" stored in the ledger.
    • FILE_UPDATE

      public static final RequestType FILE_UPDATE
      Update a "file" stored in the ledger.
    • FILE_DELETE

      public static final RequestType FILE_DELETE
      Delete a "file" stored in the ledger.
    • CRYPTO_GET_ACCOUNT_BALANCE

      public static final RequestType CRYPTO_GET_ACCOUNT_BALANCE
      Get the balance for an account.
    • CRYPTO_GET_ACCOUNT_RECORDS

      public static final RequestType CRYPTO_GET_ACCOUNT_RECORDS
      Get a full account record.
    • CRYPTO_GET_INFO

      public static final RequestType CRYPTO_GET_INFO
      Get information about a token.
    • CONTRACT_CALL_LOCAL

      public static final RequestType CONTRACT_CALL_LOCAL
      Execute a local smart contract call.
      Used by contracts to call other contracts.
    • CONTRACT_GET_INFO

      public static final RequestType CONTRACT_GET_INFO
      Get information about a smart contract.
    • CONTRACT_GET_BYTECODE

      public static final RequestType CONTRACT_GET_BYTECODE
      Get the compiled bytecode that implements a smart contract.
    • GET_BY_SOLIDITY_ID

      public static final RequestType GET_BY_SOLIDITY_ID
      Get a smart contract record by reference to the solidity ID.
    • GET_BY_KEY

      public static final RequestType GET_BY_KEY
      Get a smart contract by reference to the contract key.
    • CRYPTO_GET_LIVE_HASH

      public static final RequestType CRYPTO_GET_LIVE_HASH
      Get the live hash for an account
    • CRYPTO_GET_STAKERS

      public static final RequestType CRYPTO_GET_STAKERS
      Get the accounts proxy staking to a given account.
    • FILE_GET_CONTENTS

      public static final RequestType FILE_GET_CONTENTS
      Get the contents of a "file" stored in the ledger.
    • FILE_GET_INFO

      public static final RequestType FILE_GET_INFO
      Get the metadata for a "file" stored in the ledger.
    • TRANSACTION_GET_RECORD

      public static final RequestType TRANSACTION_GET_RECORD
      Get transaction record(s) for a specified transaction ID.
    • CONTRACT_GET_RECORDS

      public static final RequestType CONTRACT_GET_RECORDS
      Get all transaction records for a specified contract ID in the past 24 hours.
      deprecated since version 0.9.0
    • CRYPTO_CREATE

      public static final RequestType CRYPTO_CREATE
      Create a new account
    • SYSTEM_DELETE

      public static final RequestType SYSTEM_DELETE
      Delete a "system" "file" stored in the ledger.
      "System" files are files with special purpose and ID values within a specific range.
      These files require additional controls and can only be deleted when authorized by accounts with elevated privilege.
    • SYSTEM_UNDELETE

      public static final RequestType SYSTEM_UNDELETE
      Undo the delete of a "system" "file" stored in the ledger.
      "System" files are files with special purpose and ID values within a specific range.
      These files require additional controls and can only be deleted when authorized by accounts with elevated privilege. This operation allows such files to be restored, within a reasonable timeframe, if deleted improperly.
    • CONTRACT_DELETE

      public static final RequestType CONTRACT_DELETE
      Delete a smart contract
    • FREEZE

      public static final RequestType FREEZE
      Stop all processing and "freeze" the entire network.
      This is generally sent immediately prior to upgrading the network.
      After processing this transactions all nodes enter a quiescent state.
    • CREATE_TRANSACTION_RECORD

      public static final RequestType CREATE_TRANSACTION_RECORD
      Create a Transaction Record.
      This appears to be purely internal and unused.
    • CRYPTO_ACCOUNT_AUTO_RENEW

      public static final RequestType CRYPTO_ACCOUNT_AUTO_RENEW
      Auto-renew an account.
      This is used for internal fee calculations.
    • CONTRACT_AUTO_RENEW

      public static final RequestType CONTRACT_AUTO_RENEW
      Auto-renew a smart contract.
      This is used for internal fee calculations.
    • GET_VERSION_INFO

      public static final RequestType GET_VERSION_INFO
      Get version information for the ledger.
      This returns a the version of the software currently running the network for both the protocol buffers and the network services (node).
    • TRANSACTION_GET_RECEIPT

      public static final RequestType TRANSACTION_GET_RECEIPT
      Get a receipt for a specified transaction ID.
    • CONSENSUS_CREATE_TOPIC

      public static final RequestType CONSENSUS_CREATE_TOPIC
      Create a topic for the Hedera Consensus Service (HCS).
    • CONSENSUS_UPDATE_TOPIC

      public static final RequestType CONSENSUS_UPDATE_TOPIC
      Update an HCS topic.
    • CONSENSUS_DELETE_TOPIC

      public static final RequestType CONSENSUS_DELETE_TOPIC
      Delete an HCS topic.
    • CONSENSUS_GET_TOPIC_INFO

      public static final RequestType CONSENSUS_GET_TOPIC_INFO
      Get metadata (information) for an HCS topic.
    • CONSENSUS_SUBMIT_MESSAGE

      public static final RequestType CONSENSUS_SUBMIT_MESSAGE
      Publish a message to an HCS topic.
    • UNCHECKED_SUBMIT

      public static final RequestType UNCHECKED_SUBMIT
      Submit a transaction, bypassing intake checking. Only enabled in local-mode.
    • TOKEN_CREATE

      public static final RequestType TOKEN_CREATE
      Create a token for the Hedera Token Service (HTS).
    • TOKEN_GET_INFO

      public static final RequestType TOKEN_GET_INFO
      Get metadata (information) for an HTS token.
    • TOKEN_FREEZE_ACCOUNT

      public static final RequestType TOKEN_FREEZE_ACCOUNT
      Freeze a specific account with respect to a specific HTS token.

      Once this transaction completes that account CANNOT send or receive the specified token.

    • TOKEN_UNFREEZE_ACCOUNT

      public static final RequestType TOKEN_UNFREEZE_ACCOUNT
      Remove a "freeze" from an account with respect to a specific HTS token.
    • TOKEN_GRANT_KYC_TO_ACCOUNT

      public static final RequestType TOKEN_GRANT_KYC_TO_ACCOUNT
      Grant KYC status to an account for a specific HTS token.
    • TOKEN_REVOKE_KYC_FROM_ACCOUNT

      public static final RequestType TOKEN_REVOKE_KYC_FROM_ACCOUNT
      Revoke KYC status from an account for a specific HTS token.
    • TOKEN_DELETE

      public static final RequestType TOKEN_DELETE
      Delete a specific HTS token.
    • TOKEN_UPDATE

      public static final RequestType TOKEN_UPDATE
      Update a specific HTS token.
    • TOKEN_MINT

      public static final RequestType TOKEN_MINT
      Mint HTS token amounts to the treasury account for that token.
    • TOKEN_BURN

      public static final RequestType TOKEN_BURN
      Burn HTS token amounts from the treasury account for that token.
    • TOKEN_ACCOUNT_WIPE

      public static final RequestType TOKEN_ACCOUNT_WIPE
      Wipe all amounts for a specific HTS token from a specified account.
    • TOKEN_ASSOCIATE_TO_ACCOUNT

      public static final RequestType TOKEN_ASSOCIATE_TO_ACCOUNT
      Associate a specific HTS token to an account.
    • TOKEN_DISSOCIATE_FROM_ACCOUNT

      public static final RequestType TOKEN_DISSOCIATE_FROM_ACCOUNT
      Dissociate a specific HTS token from an account.
    • SCHEDULE_CREATE

      public static final RequestType SCHEDULE_CREATE
      Create a scheduled transaction
    • SCHEDULE_DELETE

      public static final RequestType SCHEDULE_DELETE
      Delete a scheduled transaction
    • SCHEDULE_SIGN

      public static final RequestType SCHEDULE_SIGN
      Sign a scheduled transaction
    • SCHEDULE_GET_INFO

      public static final RequestType SCHEDULE_GET_INFO
      Get metadata (information) for a scheduled transaction
    • TOKEN_GET_ACCOUNT_NFT_INFOS

      public static final RequestType TOKEN_GET_ACCOUNT_NFT_INFOS
      Get NFT metadata (information) for a range of NFTs associated to a specific non-fungible/unique HTS token and owned by a specific account.
    • TOKEN_GET_NFT_INFO

      public static final RequestType TOKEN_GET_NFT_INFO
      Get metadata (information) for a specific NFT identified by token and serial number.
    • TOKEN_GET_NFT_INFOS

      public static final RequestType TOKEN_GET_NFT_INFOS
      Get NFT metadata (information) for a range of NFTs associated to a specific non-fungible/unique HTS token.
    • TOKEN_FEE_SCHEDULE_UPDATE

      public static final RequestType TOKEN_FEE_SCHEDULE_UPDATE
      Update a token's custom fee schedule.

      If a transaction of this type is not signed by the token `fee_schedule_key` it SHALL fail with INVALID_SIGNATURE, or TOKEN_HAS_NO_FEE_SCHEDULE_KEY if there is no `fee_schedule_key` set.

    • NETWORK_GET_EXECUTION_TIME

      public static final RequestType NETWORK_GET_EXECUTION_TIME
      Get execution time(s) for one or more "recent" TransactionIDs.
    • TOKEN_PAUSE

      public static final RequestType TOKEN_PAUSE
      Pause a specific HTS token
    • TOKEN_UNPAUSE

      public static final RequestType TOKEN_UNPAUSE
      Unpause a paused HTS token.
    • CRYPTO_APPROVE_ALLOWANCE

      public static final RequestType CRYPTO_APPROVE_ALLOWANCE
      Approve an allowance for a spender relative to the owner account, which MUST sign the transaction.
    • CRYPTO_DELETE_ALLOWANCE

      public static final RequestType CRYPTO_DELETE_ALLOWANCE
      Delete (unapprove) an allowance previously approved for the owner account.
    • GET_ACCOUNT_DETAILS

      public static final RequestType GET_ACCOUNT_DETAILS
      Get all the information about an account, including balance and allowances.
      This does not get a list of account records.
    • ETHEREUM_TRANSACTION

      public static final RequestType ETHEREUM_TRANSACTION
      Perform an Ethereum (EVM) transaction.
      CallData may be inline if small, or in a "file" if large.
    • NODE_STAKE_UPDATE

      public static final RequestType NODE_STAKE_UPDATE
      Used to indicate when the network has updated the staking information at the end of a staking period and to indicate a new staking period has started.
    • PRNG

      public static final RequestType PRNG
      Generate and return a pseudorandom number based on network state.
    • TRANSACTION_GET_FAST_RECORD

      public static final RequestType TRANSACTION_GET_FAST_RECORD
      Get a record for a "recent" transaction.
    • TOKEN_UPDATE_NFTS

      public static final RequestType TOKEN_UPDATE_NFTS
      Update the metadata of one or more NFT's of a specific token type.
    • NODE_CREATE

      public static final RequestType NODE_CREATE
      Create a node
    • NODE_UPDATE

      public static final RequestType NODE_UPDATE
      Update a node
    • NODE_DELETE

      public static final RequestType NODE_DELETE
      Delete a node
    • TOKEN_REJECT

      public static final RequestType TOKEN_REJECT
      Transfer one or more token balances held by the requesting account to the treasury for each token type.
    • TOKEN_AIRDROP

      public static final RequestType TOKEN_AIRDROP
      Airdrop one or more tokens to one or more accounts.
    • TOKEN_CANCEL_AIRDROP

      public static final RequestType TOKEN_CANCEL_AIRDROP
      Remove one or more pending airdrops from state on behalf of the sender(s) for each airdrop.
    • TOKEN_CLAIM_AIRDROP

      public static final RequestType TOKEN_CLAIM_AIRDROP
      Claim one or more pending airdrops
    • STATE_SIGNATURE_TRANSACTION

      public static final RequestType STATE_SIGNATURE_TRANSACTION
      Submit a signature of a state root hash gossiped to other nodes
    • HINTS_KEY_PUBLICATION

      public static final RequestType HINTS_KEY_PUBLICATION
      Publish a hinTS key to the network.
    • HINTS_PREPROCESSING_VOTE

      public static final RequestType HINTS_PREPROCESSING_VOTE
      Vote for a particular preprocessing output of a hinTS construction.
    • HINTS_PARTIAL_SIGNATURE

      public static final RequestType HINTS_PARTIAL_SIGNATURE
      Sign a partial signature for the active hinTS construction.
    • HISTORY_ASSEMBLY_SIGNATURE

      public static final RequestType HISTORY_ASSEMBLY_SIGNATURE
      Sign a particular history assembly.
    • HISTORY_PROOF_KEY_PUBLICATION

      public static final RequestType HISTORY_PROOF_KEY_PUBLICATION
      Publish a roster history proof key to the network.
    • HISTORY_PROOF_VOTE

      public static final RequestType HISTORY_PROOF_VOTE
      Vote for a particular history proof.
    • CRS_PUBLICATION

      public static final RequestType CRS_PUBLICATION
      Publish a random CRS to the network.
    • ATOMIC_BATCH

      public static final RequestType ATOMIC_BATCH
      Submit a batch of transactions to run atomically
    • LAMBDA_S_STORE

      public static final RequestType LAMBDA_S_STORE
      (DEPRECATED) Remove once no production throttle assets reference it.
    • HOOK_DISPATCH

      public static final RequestType HOOK_DISPATCH
      (Internal-only) Dispatch a hook action.
    • HOOK_STORE

      public static final RequestType HOOK_STORE
      Update one or more storage slots in an EVM hook.
    • LEDGER_ID_PUBLICATION

      public static final RequestType LEDGER_ID_PUBLICATION
      (Internal-only) Publish a new ledger id and chain-of-trust key.
    • REGISTERED_NODE_CREATE

      public static final RequestType REGISTERED_NODE_CREATE
      Create a registered node
    • REGISTERED_NODE_UPDATE

      public static final RequestType REGISTERED_NODE_UPDATE
      Update a registered node
    • REGISTERED_NODE_DELETE

      public static final RequestType REGISTERED_NODE_DELETE
      Delete a registered node
    • MIGRATION_ROOT_HASH_VOTE

      public static final RequestType MIGRATION_ROOT_HASH_VOTE
      Vote on wrapped record migration hash state.
  • Field Details

  • Method Details

    • values

      public static RequestType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RequestType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      static RequestType valueOf(HederaFunctionality code)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      code - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RequestType>