api-wasm
    Preparing search index...

    Class SDK

    Index

    Constructors

    Methods

    account_put_deploy account_put_transaction call_entrypoint call_entrypoint_deploy chain_get_block chain_get_block_transfers chain_get_era_info_by_switch_block chain_get_era_summary chain_get_state_root_hash deploy free get_account get_account_options get_auction_info get_auction_info_options get_balance get_balance_options get_binary_available_block_range get_binary_block_header_by_hash get_binary_block_header_by_height get_binary_block_synchronizer_status get_binary_block_with_signatures_by_hash get_binary_block_with_signatures_by_height get_binary_chainspec_raw_bytes get_binary_consensus_status get_binary_consensus_validator_changes get_binary_delegator_reward_by_block_hash get_binary_delegator_reward_by_block_height get_binary_delegator_reward_by_era get_binary_global_state_item get_binary_global_state_item_by_block_hash get_binary_global_state_item_by_block_height get_binary_global_state_item_by_state_root_hash get_binary_last_progress get_binary_latest_block_header get_binary_latest_block_with_signatures get_binary_latest_switch_block_header get_binary_network_name get_binary_next_upgrade get_binary_node_status get_binary_peers get_binary_protocol_version get_binary_reactor_state get_binary_read_record get_binary_transaction_by_hash get_binary_try_accept_transaction get_binary_try_speculative_execution get_binary_uptime get_binary_validator_reward_by_block_hash get_binary_validator_reward_by_block_height get_binary_validator_reward_by_era get_block get_block_options get_block_transfers get_block_transfers_options get_chainspec get_deploy get_deploy_options get_dictionary_item get_dictionary_item_options get_entity get_entity_options get_era_info get_era_info_options get_era_summary get_era_summary_options get_node_status get_peers get_speculative_exec_deploy_options get_speculative_exec_options get_state_root_hash get_state_root_hash_options get_transaction get_transaction_options get_validator_changes getNodeAddress getRPCAddress getVerbosity info_get_chainspec info_get_deploy info_get_peers info_get_status info_get_transaction info_get_validator_change install install_deploy list_rpcs make_deploy make_transaction make_transfer make_transfer_transaction put_deploy put_transaction query_balance query_balance_details query_balance_details_options query_balance_options query_contract_dict query_contract_dict_options query_contract_key query_contract_key_options query_global_state query_global_state_options setNodeAddress setRPCAddress setVerbosity sign_deploy sign_transaction speculative_deploy speculative_exec speculative_exec_deploy speculative_transaction speculative_transfer speculative_transfer_transaction state_get_account_info state_get_auction_info_js_alias state_get_balance state_get_dictionary_item state_get_entity transaction transfer transfer_transaction waitDeploy waitTransaction watchDeploy watchTransaction

    Constructors

    • Parameters

      • Optionalrpc_address: string
      • Optionalnode_address: string
      • Optionalverbosity: Verbosity

      Returns SDK

    Methods

    • Calls a smart contract entry point with the specified parameters and returns the result.

      Arguments

      • transaction_params - Transaction parameters.
      • builder_params - Transaction Builder parameters.
      • rpc_address - An optional rpc address to send the request to.

      Returns

      A Result containing either a PutTransactionResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the call.

      Parameters

      Returns Promise<PutTransactionResult>

    • Calls a smart contract entry point with the specified parameters and returns the result.

      Arguments

      • deploy_params - The deploy parameters.
      • session_params - The session parameters.
      • payment_amount - The payment amount as a string.
      • rpc_address - An optional rpc address to send the request to.

      Returns

      A Result containing either a PutDeployResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the call.

      Parameters

      Returns Promise<PutDeployResult>

    • JavaScript Alias for the get_block.

      Arguments

      • options - An optional GetBlockOptions struct containing retrieval options.

      Returns

      A Result containing either a GetBlockResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetBlockResult>

    • Retrieves state root hash information using the provided options (alias for get_state_root_hash).

      Arguments

      • options - An optional GetStateRootHashOptions struct containing retrieval options.

      Returns

      A Result containing either a GetStateRootHashResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetStateRootHashResult>

    • JavaScript function for deploying with deserialized parameters.

      Arguments

      • deploy_params - Deploy parameters.
      • session_params - Session parameters.
      • payment_params - Payment parameters.
      • verbosity - An optional verbosity level.
      • rpc_address - An optional rpc address.

      Returns

      A result containing PutDeployResult or a JsError.

      Parameters

      Returns Promise<PutDeployResult>

    • Returns void

    • Retrieves account information using the provided options.

      This function is an asynchronous JavaScript binding for the Rust get_account method.

      Arguments

      • options - An optional GetAccountOptions struct containing retrieval options, such as:
        • account_identifier: Identifier for the account.
        • account_identifier_as_string: String representation of the account identifier.
        • maybe_block_id_as_string: Optional string representation of the block ID.
        • maybe_block_identifier: Optional BlockIdentifierInput for specifying the block.
        • verbosity: Verbosity level for the output.
        • rpc_address: Address of the node to query.

      Returns

      A Result containing either a GetAccountResult on success or a JsError on failure.

      Errors

      Returns a JsError if there is an error during the retrieval process, such as issues with the provided options or network errors.

      
      

      Parameters

      Returns Promise<GetAccountResult>

    • Retrieves auction information using the provided options.

      Arguments

      • options - An optional GetAuctionInfoOptions struct containing retrieval options.

      Returns

      A Result containing either a GetAuctionInfoResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetAuctionInfoResult>

    • Parses auction info options from a JsValue.

      Arguments

      • options - A JsValue containing auction info options to be parsed.

      Returns

      Result containing parsed auction info options as a GetAuctionInfoOptions struct, or a JsError if deserialization fails.

      Parameters

      • options: any

      Returns getAuctionInfoOptions

    • Retrieves balance information using the provided options.

      Arguments

      • options - An optional GetBalanceOptions struct containing retrieval options.

      Returns

      A Result containing either a GetBalanceResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetBalanceResult>

    • Parses balance options from a JsValue.

      Arguments

      • options - A JsValue containing balance options to be parsed.

      Returns

      Parsed balance options as a GetBalanceOptions struct.

      Parameters

      • options: any

      Returns getBalanceOptions

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • block_hash: BlockHash
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • height: bigint
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • block_hash: BlockHash
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • height: bigint
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Parameters

      • validator_key: PublicKey
      • delegator_key: PublicKey
      • block_height: bigint
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Parameters

      • key: Key
      • path: string[]
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • block_hash: BlockHash
      • key: Key
      • path: string[]
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • block_height: bigint
      • key: Key
      • path: string[]
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • state_root_hash: Digest
      • key: Key
      • path: string[]
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • record_id: RecordId
      • key: Uint8Array
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      • hash: TransactionHash
      • with_finalized_approvals: boolean
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Parameters

      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Parameters

      • validator_key: PublicKey
      • block_height: bigint
      • Optionalnode_address: string

      Returns Promise<any>

    • Parameters

      Returns Promise<any>

    • Retrieves block information using the provided options.

      Arguments

      • options - An optional GetBlockOptions struct containing retrieval options.

      Returns

      A Result containing either a GetBlockResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetBlockResult>

    • Parses block options from a JsValue.

      Arguments

      • options - A JsValue containing block options to be parsed.

      Returns

      Parsed block options as a GetBlockOptions struct.

      Parameters

      • options: any

      Returns getBlockOptions

    • Retrieves block transfers information using the provided options.

      Arguments

      • options - An optional GetBlockTransfersOptions struct containing retrieval options.

      Returns

      A Result containing either a GetBlockTransfersResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetBlockTransfersResult>

    • Parses block transfers options from a JsValue.

      Arguments

      • options - A JsValue containing block transfers options to be parsed.

      Returns

      Parsed block transfers options as a GetBlockTransfersOptions struct.

      Parameters

      • options: any

      Returns getBlockTransfersOptions

    • Asynchronously retrieves the chainspec.

      Arguments

      • verbosity - An optional Verbosity parameter.
      • rpc_address - An optional rpc address as a string.

      Returns

      A Result containing either a GetChainspecResult or a JsError in case of an error.

      Parameters

      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<GetChainspecResult>

    • Retrieves deploy information using the provided options.

      Arguments

      • options - An optional GetDeployOptions struct containing retrieval options.

      Returns

      A Result containing either a GetDeployResult or an error.

      Parameters

      Returns Promise<GetDeployResult>

    • Parses deploy options from a JsValue.

      Arguments

      • options - A JsValue containing deploy options to be parsed.

      Returns

      Parsed deploy options as a GetDeployOptions struct.

      Parameters

      • options: any

      Returns getDeployOptions

    • Retrieves dictionary item information using the provided options.

      Arguments

      • options - An optional GetDictionaryItemOptions struct containing retrieval options.

      Returns

      A Result containing either a GetDictionaryItemResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetDictionaryItemResult>

    • Parses dictionary item options from a JsValue.

      Arguments

      • options - A JsValue containing dictionary item options to be parsed.

      Returns

      Parsed dictionary item options as a GetDictionaryItemOptions struct.

      Parameters

      • options: any

      Returns getDictionaryItemOptions

    • Retrieves entity information using the provided options.

      This function is an asynchronous JavaScript binding for the Rust get_entity method.

      Arguments

      • options - An optional GetEntityOptions struct containing retrieval options, such as:
        • entity_identifier: Identifier for the entity.
        • entity_identifier_as_string: String representation of the entity identifier.
        • maybe_block_id_as_string: Optional string representation of the block ID.
        • maybe_block_identifier: Optional BlockIdentifierInput for specifying the block.
        • verbosity: Verbosity level for the output.
        • rpc_address: Address of the node to query.

      Returns

      A Result containing either a GetAddressableEntityResult on success or a JsError on failure.

      Errors

      Returns a JsError if there is an error during the retrieval process, such as issues with the provided options or network errors.

      
      

      Parameters

      Returns Promise<GetAddressableEntityResult>

    • Retrieves era summary information using the provided options.

      Arguments

      • options - An optional GetEraSummaryOptions struct containing retrieval options.

      Returns

      A Result containing either a GetEraSummaryResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetEraSummaryResult>

    • Parses era summary options from a JsValue.

      Arguments

      • options - A JsValue containing era summary options to be parsed.

      Returns

      Parsed era summary options as a GetEraSummaryOptions struct.

      Parameters

      • options: any

      Returns getEraSummaryOptions

    • Retrieves node status information using the provided options.

      Arguments

      • verbosity - An optional Verbosity level for controlling the output verbosity.
      • rpc_address - An optional string specifying the rpc address to use for the request.

      Returns

      A Result containing either a GetNodeStatusResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<GetNodeStatusResult>

    • Retrieves peers asynchronously.

      Arguments

      • verbosity - Optional verbosity level.
      • rpc_address - Optional rpc address.

      Returns

      A Result containing GetPeersResult or a JsError if an error occurs.

      Parameters

      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<GetPeersResult>

    • Retrieves state root hash information using the provided options.

      Arguments

      • options - An optional GetStateRootHashOptions struct containing retrieval options.

      Returns

      A Result containing either a GetStateRootHashResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<GetStateRootHashResult>

    • Parses state root hash options from a JsValue.

      Arguments

      • options - A JsValue containing state root hash options to be parsed.

      Returns

      Parsed state root hash options as a GetStateRootHashOptions struct.

      Parameters

      • options: any

      Returns getStateRootHashOptions

    • Parses transaction options from a JsValue.

      Arguments

      • options - A JsValue containing transaction options to be parsed.

      Returns

      Parsed transaction options as a GetTransactionOptions struct.

      Parameters

      • options: any

      Returns getTransactionOptions

    • Retrieves validator changes using the provided options.

      Arguments

      • verbosity - An optional Verbosity level for controlling the output verbosity.
      • rpc_address - An optional string specifying the rpc address to use for the request.

      Returns

      A Result containing either a GetValidatorChangesResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<GetValidatorChangesResult>

    • Parameters

      • Optionalnode_address: string

      Returns string

    • Parameters

      • Optionalrpc_address: string

      Returns string

    • Installs a smart contract with the specified parameters and returns the result.

      Arguments

      .

      • transaction_params - Transaction parameters.
      • transaction_bytes - Transaction Bytes to install
      • rpc_address - An optional rpc address to send the request to.

      Returns

      A Result containing either a PutTransactionResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the installation.

      Parameters

      Returns Promise<PutTransactionResult>

    • Installs a smart contract with the specified parameters and returns the result.

      Arguments

      • deploy_params - The deploy parameters.
      • session_params - The session parameters.
      • payment_amount - The payment amount as a string.
      • rpc_address - An optional rpc address to send the request to.

      Returns

      A Result containing either a PutDeployResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the installation.

      Parameters

      Returns Promise<PutDeployResult>

    • Lists available RPCs using the provided options.

      Arguments

      • verbosity - An optional Verbosity level for controlling the output verbosity.
      • rpc_address - An optional string specifying the rpc address to use for the request.

      Returns

      A Result containing either a ListRpcsResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the listing process.

      Parameters

      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<ListRpcsResult>

    • JS function for make_transfer.

      Arguments

      • amount - The transfer amount.
      • target_account - The target account.
      • transfer_id - Optional transfer identifier.
      • deploy_params - The deploy parameters.
      • payment_params - The payment parameters.

      Returns

      A Result containing the created Deploy or a JsError in case of an error.

      Parameters

      Returns Deploy

    • JS function for make_transfer_transaction.

      Arguments

      • maybe_source - Optional transfer source uref.
      • amount - The transfer amount.
      • target - The target account.
      • transaction_params - The transaction parameters.
      • maybe_id - Optional transfer identifier.

      Returns

      A Result containing the created Transaction or a JsError in case of an error.

      Parameters

      Returns Transaction

    • Puts a deploy using the provided options.

      Arguments

      • deploy - The Deploy object to be sent.
      • verbosity - An optional Verbosity level for controlling the output verbosity.
      • rpc_address - An optional string specifying the rpc address to use for the request.

      Returns

      A Result containing either a PutDeployResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the deploy process.

      Parameters

      Returns Promise<PutDeployResult>

    • Puts a transaction using the provided options.

      Arguments

      • transaction - The Transaction object to be sent.
      • verbosity - An optional Verbosity level for controlling the output verbosity.
      • rpc_address - An optional string specifying the rpc address to use for the request.

      Returns

      A Result containing either a PutTransactionResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the transaction process.

      Parameters

      Returns Promise<PutTransactionResult>

    • Retrieves balance information using the provided options.

      Arguments

      • options - An optional QueryBalanceOptions struct containing retrieval options.

      Returns

      A Result containing either a QueryBalanceResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<QueryBalanceResult>

    • Retrieves balance information using the provided options.

      Arguments

      • options - An optional QueryBalanceDetailsOptions struct containing retrieval options.

      Returns

      A Result containing either a QueryBalanceDetailsResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<QueryBalanceDetailsResult>

    • Parses query balance options from a JsValue.

      Arguments

      • options - A JsValue containing query balance options to be parsed.

      Returns

      Parsed query balance options as a QueryBalanceDetailsOptions struct.

      Parameters

      • options: any

      Returns queryBalanceDetailsOptions

    • Parses query balance options from a JsValue.

      Arguments

      • options - A JsValue containing query balance options to be parsed.

      Returns

      Parsed query balance options as a QueryBalanceOptions struct.

      Parameters

      • options: any

      Returns queryBalanceOptions

    • Retrieves global state information using the provided options.

      Arguments

      • options - An optional QueryGlobalStateOptions struct containing retrieval options.

      Returns

      A Result containing either a QueryGlobalStateResult or a JsError in case of an error.

      Errors

      Returns a JsError if there is an error during the retrieval process.

      Parameters

      Returns Promise<QueryGlobalStateResult>

    • Parses query global state options from a JsValue.

      Arguments

      • options - A JsValue containing query global state options to be parsed.

      Returns

      Parsed query global state options as a QueryGlobalStateOptions struct.

      Parameters

      • options: any

      Returns queryGlobalStateOptions

    • Parameters

      • Optionalnode_address: string

      Returns void

    • Parameters

      • Optionalrpc_address: string

      Returns void

    • Parameters

      Returns void

    • JS function for sign_deploy.

      Arguments

      • deploy - The deploy to sign.
      • secret_key - The secret key for signing.

      Returns

      The signed Deploy.

      Parameters

      • deploy: Deploy
      • secret_key: string

      Returns Deploy

    • JS function for sign_transaction.

      Arguments

      • transaction - The transaction to sign.
      • secret_key - The secret key for signing.

      Returns

      The signed Transaction.

      Parameters

      Returns Transaction

    • This function allows executing a deploy speculatively.

      Arguments

      • deploy_params - Deployment parameters for the deploy.
      • session_params - Session parameters for the deploy.
      • payment_params - Payment parameters for the deploy.
      • verbosity - Optional verbosity level.
      • rpc_address - Optional rpc address.

      Returns

      A Result containing either a SpeculativeExecResult or a JsError in case of an error.

      Parameters

      Returns Promise<SpeculativeExecResult>

    • JS function for speculative transfer.

      Arguments

      • amount - The amount to transfer.
      • target_account - The target account.
      • transfer_id - An optional transfer ID (defaults to a random number).
      • deploy_params - The deployment parameters.
      • payment_params - The payment parameters.
      • verbosity - The verbosity level for logging (optional).
      • rpc_address - The address of the node to connect to (optional).

      Returns

      A Result containing the result of the speculative transfer or a JsError in case of an error.

      Parameters

      Returns Promise<SpeculativeExecResult>

    • JS function for speculative transfer transaction.

      Arguments

      • maybe_source - Optional transfer source uref.
      • target_account - The target account.
      • amount - The amount to transfer.
      • maybe_id - An optional transfer ID (defaults to a random number).
      • transaction_params - The transactionment parameters.
      • verbosity - The verbosity level for logging (optional).
      • rpc_address - The address of the node to connect to (optional).

      Returns

      A Result containing the result of the speculative transfer or a JsError in case of an error.

      Parameters

      • maybe_source: URef
      • target_account: string
      • amount: string
      • transaction_params: TransactionStrParams
      • Optionalmaybe_id: string
      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<SpeculativeExecTxnResult>

    • JavaScript Alias for get_balance.

      Arguments

      • options - An optional GetBalanceOptions struct containing retrieval options.

      Returns

      A Result containing either a GetBalanceResult or a JsError in case of an error.

      Parameters

      Returns Promise<GetBalanceResult>

    • JS function for transferring funds.

      Arguments

      • amount - The amount to transfer.
      • target_account - The target account.
      • transfer_id - An optional transfer ID (defaults to a random number).
      • deploy_params - The deployment parameters.
      • payment_params - The payment parameters.
      • verbosity - The verbosity level for logging (optional).
      • rpc_address - The address of the node to connect to (optional).

      Returns

      A Result containing the result of the transfer or a JsError in case of an error.

      Parameters

      Returns Promise<PutDeployResult>

    • JS function for transaction transferring funds.

      Arguments

      • maybe_source - Optional transfer source uref.
      • target_account - The target account.
      • amount - The amount to transfer.
      • transaction_params - The transaction parameters.
      • maybe_id - An optional transfer ID (defaults to a random number).
      • verbosity - The verbosity level for logging (optional).
      • rpc_address - The address of the node to connect to (optional).

      Returns

      A Result containing the result of the transfer or a JsError in case of an error.

      Parameters

      • maybe_source: URef
      • target_account: string
      • amount: string
      • transaction_params: TransactionStrParams
      • Optionalmaybe_id: string
      • Optionalverbosity: Verbosity
      • Optionalrpc_address: string

      Returns Promise<PutTransactionResult>

    • Waits for a deploy event to be processed asynchronously (JavaScript-friendly). Legacy alias

      Arguments

      • events_url - The URL to monitor for transaction events.
      • deploy_hash - The deploy hash to wait for.
      • timeout_duration - An optional timeout duration in seconds.

      Returns

      A JavaScript Promise resolving to either the processed EventParseResult or an error message.

      Parameters

      • events_url: string
      • deploy_hash: string
      • Optionaltimeout_duration: number

      Returns Promise<Promise<any>>

    • Waits for a deploy event to be processed asynchronously (JavaScript-friendly).

      Arguments

      • events_url - The URL to monitor for transaction events.
      • target_hash - The transaction hash to wait for.
      • timeout_duration - An optional timeout duration in seconds.

      Returns

      A JavaScript Promise resolving to either the processed EventParseResult or an error message.

      Parameters

      • events_url: string
      • target_hash: string
      • Optionaltimeout_duration: number

      Returns Promise<Promise<any>>

    • Creates a new Watcher instance to watch deploys (JavaScript-friendly). Legacy alias

      Arguments

      • events_url - The URL to monitor for transaction events.
      • timeout_duration - An optional timeout duration in seconds.

      Returns

      A Watcher instance.

      Parameters

      • events_url: string
      • Optionaltimeout_duration: number

      Returns Watcher

    • Creates a new Watcher instance to watch deploys (JavaScript-friendly).

      Arguments

      • events_url - The URL to monitor for transaction events.
      • timeout_duration - An optional timeout duration in seconds.

      Returns

      A Watcher instance.

      Parameters

      • events_url: string
      • Optionaltimeout_duration: number

      Returns Watcher