JavaScript Alias for put_transaction.
Optionalverbosity: VerbosityOptionalrpc_address: stringCalls a smart contract entry point with the specified parameters and returns the result.
transaction_params - Transaction parameters.builder_params - Transaction Builder parameters.rpc_address - An optional rpc address to send the request to.A Result containing either a PutTransactionResult or a JsError in case of an error.
Returns a JsError if there is an error during the call.
Optionalrpc_address: stringCalls 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.rpc_address - An optional rpc 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.
Optionalrpc_address: stringJavaScript Alias for the get_block.
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.
Optionaloptions: getBlockOptionsOptionaloptions: getBlockTransfersOptionsOptionaloptions: getEraInfoOptionsOptionaloptions: getEraSummaryOptionsRetrieves state root hash information using the provided options (alias for get_state_root_hash).
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.
Optionaloptions: getStateRootHashOptionsJavaScript function for deploying with deserialized parameters.
deploy_params - Deploy parameters.session_params - Session parameters.payment_params - Payment parameters.verbosity - An optional verbosity level.rpc_address - An optional rpc address.A result containing PutDeployResult or a JsError.
Optionalverbosity: VerbosityOptionalrpc_address: stringRetrieves account information using the provided options.
This function is an asynchronous JavaScript binding for the Rust get_account method.
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.A Result containing either a GetAccountResult on success or a JsError on failure.
Returns a JsError if there is an error during the retrieval process, such as issues with the provided options or network errors.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: getBalanceOptionsParses balance options from a JsValue.
options - A JsValue containing balance options to be parsed.Parsed balance options as a GetBalanceOptions struct.
Optionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringOptionalnode_address: stringRetrieves 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.
Optionaloptions: 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.
Optionaloptions: 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.rpc_address - An optional rpc address as a string.A Result containing either a GetChainspecResult or a JsError in case of an error.
Optionalverbosity: VerbosityOptionalrpc_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.
Optionaloptions: 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.
Optionaloptions: 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.
Retrieves entity information using the provided options.
This function is an asynchronous JavaScript binding for the Rust get_entity method.
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.A Result containing either a GetAddressableEntityResult on success or a JsError on failure.
Returns a JsError if there is an error during the retrieval process, such as issues with the provided options or network errors.
Optionaloptions: getEntityOptionsOptionaloptions: 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.
Optionaloptions: 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.rpc_address - An optional string specifying the rpc 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.
Optionalverbosity: VerbosityOptionalrpc_address: stringRetrieves peers asynchronously.
verbosity - Optional verbosity level.rpc_address - Optional rpc address.A Result containing GetPeersResult or a JsError if an error occurs.
Optionalverbosity: VerbosityOptionalrpc_address: stringGet options for speculative execution from a JavaScript value.
Get 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.
Optionaloptions: 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 transaction information using the provided options.
options - An optional GetTransactionOptions struct containing retrieval options.A Result containing either a GetTransactionResult or an error.
Optionaloptions: getTransactionOptionsParses transaction options from a JsValue.
options - A JsValue containing transaction options to be parsed.Parsed transaction options as a GetTransactionOptions struct.
Retrieves validator changes using the provided options.
verbosity - An optional Verbosity level for controlling the output verbosity.rpc_address - An optional string specifying the rpc 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.
Optionalverbosity: VerbosityOptionalrpc_address: stringOptionalnode_address: stringOptionalrpc_address: stringOptionalverbosity: VerbosityOptionalrpc_address: stringRetrieves deploy information using the provided options, alias for get_deploy.
Optionaloptions: getDeployOptionsOptionalverbosity: VerbosityOptionalrpc_address: stringOptionalverbosity: VerbosityOptionalrpc_address: stringRetrieves transaction information using the provided options, alias for get_transaction.
Optionaloptions: getTransactionOptionsOptionalverbosity: VerbosityOptionalrpc_address: stringInstalls a smart contract with the specified parameters and returns the result.
.
transaction_params - Transaction parameters.transaction_bytes - Transaction Bytes to installrpc_address - An optional rpc address to send the request to.A Result containing either a PutTransactionResult or a JsError in case of an error.
Returns a JsError if there is an error during the installation.
Optionalrpc_address: stringInstalls 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.rpc_address - An optional rpc 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.
Optionalrpc_address: stringLists available RPCs using the provided options.
verbosity - An optional Verbosity level for controlling the output verbosity.rpc_address - An optional string specifying the rpc 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.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function 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 function for make_transaction.
builder_params - Transaction Builder parameters.transaction_params - The transaction parameters.A Result containing the created Transaction or a JsError in case of an error.
JS function 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.
JS function for make_transfer_transaction.
maybe_source - Optional transfer source uref.amount - The transfer amount.target - The target account.transaction_params - The transaction parameters.maybe_id - Optional transfer identifier.A Result containing the created Transaction or a JsError in case of an error.
Optionalmaybe_id: stringPuts a deploy using the provided options.
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.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.
Puts a transaction using the provided options.
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.A Result containing either a PutTransactionResult or a JsError in case of an error.
Returns a JsError if there is an error during the transaction process.
Optionalverbosity: VerbosityOptionalrpc_address: stringRetrieves 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.
Optionaloptions: queryBalanceOptionsRetrieves balance information using the provided options.
options - An optional QueryBalanceDetailsOptions struct containing retrieval options.A Result containing either a QueryBalanceDetailsResult or a JsError in case of an error.
Returns a JsError if there is an error during the retrieval process.
Optionaloptions: queryBalanceDetailsOptionsParses query balance options from a JsValue.
options - A JsValue containing query balance options to be parsed.Parsed query balance options as a QueryBalanceDetailsOptions struct.
Parses 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 function for query_contract_dict with deserialized options.
Optionaloptions: queryContractDictOptionsDeserialize query_contract_dict_options from a JavaScript object.
JavaScript function for query_contract_key with deserialized options.
Optionaloptions: 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.
Optionaloptions: 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.
Optionalnode_address: stringOptionalrpc_address: stringOptionalverbosity: VerbosityJS function for sign_transaction.
transaction - The transaction to sign.secret_key - The secret key for signing.The signed Transaction.
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.verbosity - Optional verbosity level.rpc_address - Optional rpc address.A Result containing either a SpeculativeExecResult or a JsError in case of an error.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function 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.
Optionaloptions: getSpeculativeExecTxnOptionsJS function 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.
Optionaloptions: getSpeculativeExecDeployOptionsThis function allows executing a transaction speculatively.
builder_params - Transaction Builder parameters.transaction_params - Transactionment parameters for the transaction.verbosity - Optional verbosity level.rpc_address - Optional rpc address.A Result containing either a SpeculativeExecTxnResult or a JsError in case of an error.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function 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.verbosity - The verbosity level for logging (optional).rpc_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.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function for speculative transfer transaction.
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).A Result containing the result of the speculative transfer or a JsError in case of an error.
Optionalmaybe_id: stringOptionalverbosity: VerbosityOptionalrpc_address: stringOptionaloptions: getAccountOptionsOptionaloptions: getAuctionInfoOptionsJavaScript Alias for get_balance.
options - An optional GetBalanceOptions struct containing retrieval options.A Result containing either a GetBalanceResult or a JsError in case of an error.
Optionaloptions: getBalanceOptionsJavaScript Alias for get_dictionary_item
Optionaloptions: getDictionaryItemOptionsOptionaloptions: getEntityOptionsJavaScript function for transactioning with deserialized parameters.
transaction_params - Transaction parameters.builder_params - Session parameters.verbosity - An optional verbosity level.rpc_address - An optional rpc address.A result containing PutTransactionResult or a JsError.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function 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).rpc_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.
Optionalverbosity: VerbosityOptionalrpc_address: stringJS function for transaction transferring funds.
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).A Result containing the result of the transfer or a JsError in case of an error.
Optionalmaybe_id: stringOptionalverbosity: VerbosityOptionalrpc_address: stringWaits for a deploy event to be processed asynchronously (JavaScript-friendly). Legacy alias
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.A JavaScript Promise resolving to either the processed EventParseResult or an error message.
Optionaltimeout_duration: numberWaits for a deploy event to be processed asynchronously (JavaScript-friendly).
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.A JavaScript Promise resolving to either the processed EventParseResult or an error message.
Optionaltimeout_duration: numberCreates a new Watcher instance to watch deploys (JavaScript-friendly). Legacy alias
events_url - The URL to monitor for transaction events.timeout_duration - An optional timeout duration in seconds.A Watcher instance.
Optionaltimeout_duration: numberCreates a new Watcher instance to watch deploys (JavaScript-friendly).
events_url - The URL to monitor for transaction events.timeout_duration - An optional timeout duration in seconds.A Watcher instance.
Optionaltimeout_duration: number
JavaScript Alias for
put_deploy.