Calls a smart contract entry point with the specified parameters and returns the result.
deploy_params
- The deploy parameters.session_params
- The session parameters.payment_amount
- The payment amount as a string.node_address
- An optional node address to send the request to.A Result
containing either a PutDeployResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the call.
Optional
node_address: stringJS Alias for the get_block
method to maintain compatibility.
options
- An optional GetBlockOptions
struct containing retrieval options.A Result
containing either a GetBlockResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getBlockOptionsRetrieves state root hash information using the provided options (alias for get_state_root_hash_js_alias
).
options
- An optional GetStateRootHashOptions
struct containing retrieval options.A Result
containing either a GetStateRootHashResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getStateRootHashOptionsJavaScript alias for deploying with deserialized parameters.
deploy_params
- Deploy parameters.session_params
- Session parameters.payment_params
- Payment parameters.verbosity
- An optional verbosity level.node_address
- An optional node address.A result containing PutDeployResult or a JsError.
Optional
verbosity: VerbosityOptional
node_address: stringOptional
options: getAccountOptionsRetrieves auction information using the provided options.
options
- An optional GetAuctionInfoOptions
struct containing retrieval options.A Result
containing either a GetAuctionInfoResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getAuctionInfoOptionsParses auction info options from a JsValue.
options
- A JsValue containing auction info options to be parsed.Result containing parsed auction info options as a GetAuctionInfoOptions
struct,
or a JsError
if deserialization fails.
Retrieves balance information using the provided options.
options
- An optional GetBalanceOptions
struct containing retrieval options.A Result
containing either a GetBalanceResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getBalanceOptionsParses balance options from a JsValue.
options
- A JsValue containing balance options to be parsed.Parsed balance options as a GetBalanceOptions
struct.
Retrieves block information using the provided options.
options
- An optional GetBlockOptions
struct containing retrieval options.A Result
containing either a GetBlockResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getBlockOptionsParses block options from a JsValue.
options
- A JsValue containing block options to be parsed.Parsed block options as a GetBlockOptions
struct.
Retrieves block transfers information using the provided options.
options
- An optional GetBlockTransfersOptions
struct containing retrieval options.A Result
containing either a GetBlockTransfersResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getBlockTransfersOptionsParses block transfers options from a JsValue.
options
- A JsValue containing block transfers options to be parsed.Parsed block transfers options as a GetBlockTransfersOptions
struct.
Asynchronously retrieves the chainspec.
verbosity
- An optional Verbosity
parameter.node_address
- An optional node address as a string.A Result
containing either a GetChainspecResult
or a JsError
in case of an error.
Optional
verbosity: VerbosityOptional
node_address: stringRetrieves deploy information using the provided options.
options
- An optional GetDeployOptions
struct containing retrieval options.A Result
containing either a GetDeployResult
or an error.
Optional
options: getDeployOptionsParses deploy options from a JsValue.
options
- A JsValue containing deploy options to be parsed.Parsed deploy options as a GetDeployOptions
struct.
Retrieves dictionary item information using the provided options.
options
- An optional GetDictionaryItemOptions
struct containing retrieval options.A Result
containing either a GetDictionaryItemResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getDictionaryItemOptionsParses dictionary item options from a JsValue.
options
- A JsValue containing dictionary item options to be parsed.Parsed dictionary item options as a GetDictionaryItemOptions
struct.
Optional
options: getEraInfoOptionsRetrieves era summary information using the provided options.
options
- An optional GetEraSummaryOptions
struct containing retrieval options.A Result
containing either a GetEraSummaryResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getEraSummaryOptionsParses era summary options from a JsValue.
options
- A JsValue containing era summary options to be parsed.Parsed era summary options as a GetEraSummaryOptions
struct.
Retrieves node status information using the provided options.
verbosity
- An optional Verbosity
level for controlling the output verbosity.node_address
- An optional string specifying the node address to use for the request.A Result
containing either a GetNodeStatusResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
verbosity: VerbosityOptional
node_address: stringRetrieves peers asynchronously.
verbosity
- Optional verbosity level.node_address
- Optional node address.A Result
containing GetPeersResult
or a JsError
if an error occurs.
Optional
verbosity: VerbosityOptional
node_address: stringGet options for speculative execution from a JavaScript value.
Retrieves state root hash information using the provided options.
options
- An optional GetStateRootHashOptions
struct containing retrieval options.A Result
containing either a GetStateRootHashResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: getStateRootHashOptionsParses state root hash options from a JsValue.
options
- A JsValue containing state root hash options to be parsed.Parsed state root hash options as a GetStateRootHashOptions
struct.
Retrieves validator changes using the provided options.
verbosity
- An optional Verbosity
level for controlling the output verbosity.node_address
- An optional string specifying the node address to use for the request.A Result
containing either a GetValidatorChangesResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
verbosity: VerbosityOptional
node_address: stringRetrieves deploy information using the provided options, alias for get_deploy_js_alias
.
Optional
options: getDeployOptionsInstalls a smart contract with the specified parameters and returns the result.
deploy_params
- The deploy parameters.session_params
- The session parameters.payment_amount
- The payment amount as a string.node_address
- An optional node address to send the request to.A Result
containing either a PutDeployResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the installation.
Optional
node_address: stringLists available RPCs using the provided options.
verbosity
- An optional Verbosity
level for controlling the output verbosity.node_address
- An optional string specifying the node address to use for the request.A Result
containing either a ListRpcsResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the listing process.
Optional
verbosity: VerbosityOptional
node_address: stringJS Alias for make_deploy
.
deploy_params
- The deploy parameters.session_params
- The session parameters.payment_params
- The payment parameters.A Result
containing the created Deploy
or a JsError
in case of an error.
JS Alias for make_transfer
.
amount
- The transfer amount.target_account
- The target account.transfer_id
- Optional transfer identifier.deploy_params
- The deploy parameters.payment_params
- The payment parameters.A Result
containing the created Deploy
or a JsError
in case of an error.
Puts a deploy using the provided options.
deploy
- The Deploy
object to be sent.verbosity
- An optional Verbosity
level for controlling the output verbosity.node_address
- An optional string specifying the node address to use for the request.A Result
containing either a PutDeployResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the deploy process.
Retrieves balance information using the provided options.
options
- An optional QueryBalanceOptions
struct containing retrieval options.A Result
containing either a QueryBalanceResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: queryBalanceOptionsParses query balance options from a JsValue.
options
- A JsValue containing query balance options to be parsed.Parsed query balance options as a QueryBalanceOptions
struct.
JavaScript alias for query_contract_dict with deserialized options.
Optional
options: queryContractDictOptionsDeserialize query_contract_dict_options from a JavaScript object.
JavaScript alias for query_contract_key with deserialized options.
Optional
options: queryContractKeyOptionsDeserialize query_contract_key_options from a JavaScript object.
Retrieves global state information using the provided options.
options
- An optional QueryGlobalStateOptions
struct containing retrieval options.A Result
containing either a QueryGlobalStateResult
or a JsError
in case of an error.
Returns a JsError
if there is an error during the retrieval process.
Optional
options: queryGlobalStateOptionsParses query global state options from a JsValue.
options
- A JsValue containing query global state options to be parsed.Parsed query global state options as a QueryGlobalStateOptions
struct.
This function allows executing a deploy speculatively.
deploy_params
- Deployment parameters for the deploy.session_params
- Session parameters for the deploy.payment_params
- Payment parameters for the deploy.maybe_block_id_as_string
- An optional block ID as a string.maybe_block_identifier
- Optional block identifier.verbosity
- Optional verbosity level.node_address
- Optional node address.A Result
containing either a SpeculativeExecResult
or a JsError
in case of an error.
Optional
maybe_block_id_as_string: stringOptional
maybe_block_identifier: BlockIdentifierOptional
verbosity: VerbosityOptional
node_address: stringJS Alias for speculative execution.
options
- The options for speculative execution.A Result
containing the result of the speculative execution or a JsError
in case of an error.
Optional
options: getSpeculativeExecOptionsJS Alias for speculative transfer.
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.maybe_block_id_as_string
- An optional block ID as a string.maybe_block_identifier
- An optional block identifier.verbosity
- The verbosity level for logging (optional).node_address
- The address of the node to connect to (optional).A Result
containing the result of the speculative transfer or a JsError
in case of an error.
Optional
maybe_block_id_as_string: stringOptional
maybe_block_identifier: BlockIdentifierOptional
verbosity: VerbosityOptional
node_address: stringOptional
options: getAccountOptionsJS Alias for get_balance_js_alias
.
options
- An optional GetBalanceOptions
struct containing retrieval options.A Result
containing either a GetBalanceResult
or a JsError
in case of an error.
Optional
options: getBalanceOptionsJS Alias for get_dictionary_item_js_alias
Optional
options: getDictionaryItemOptionsJS Alias for transferring funds.
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).node_address
- The address of the node to connect to (optional).A Result
containing the result of the transfer or a JsError
in case of an error.
Optional
verbosity: VerbosityOptional
node_address: stringWaits for a deploy event to be processed asynchronously (JavaScript-friendly).
events_url
- The URL to monitor for deploy events.deploy_hash
- The deploy hash to wait for.timeout_duration
- An optional timeout duration in seconds.A JavaScript Promise
resolving to either the processed EventParseResult
or an error message.
Optional
timeout_duration: numberCreates a new DeployWatcher instance to watch deploys (JavaScript-friendly).
events_url
- The URL to monitor for deploy events.timeout_duration
- An optional timeout duration in seconds.A DeployWatcher
instance.
Optional
timeout_duration: number
JS Alias for
put_deploy_js_alias
.This function provides an alternative name for
put_deploy_js_alias
.