JavaScript Alias for put_transaction
.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
rpc_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.
Optional
rpc_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.
Optional
options: getBlockOptionsOptional
options: getBlockTransfersOptionsOptional
options: getEraInfoOptionsOptional
options: 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.
Optional
options: 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.
Optional
verbosity: VerbosityOptional
rpc_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.
@param {getAccountOptions | undefined} [options]
@returns {Promise<GetAccountResult
Optional
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.rpc_address
- An optional rpc address as a string.A Result
containing either a GetChainspecResult
or a JsError
in case of an error.
Optional
verbosity: VerbosityOptional
rpc_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.
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.
@param {getEntityOptions | undefined} [options]
@returns {Promise<GetAddressableEntityResult
Optional
options: getEntityOptionsOptional
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.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.
Optional
verbosity: VerbosityOptional
rpc_address: stringRetrieves peers asynchronously.
verbosity
- Optional verbosity level.rpc_address
- Optional rpc address.A Result
containing GetPeersResult
or a JsError
if an error occurs.
Optional
verbosity: VerbosityOptional
rpc_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.
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 transaction information using the provided options.
options
- An optional GetTransactionOptions
struct containing retrieval options.A Result
containing either a GetTransactionResult
or an error.
Optional
options: 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.
Optional
verbosity: VerbosityOptional
rpc_address: stringOptional
verbosity: VerbosityOptional
rpc_address: stringRetrieves deploy information using the provided options, alias for get_deploy
.
Optional
options: getDeployOptionsOptional
verbosity: VerbosityOptional
rpc_address: stringOptional
verbosity: VerbosityOptional
rpc_address: stringRetrieves transaction information using the provided options, alias for get_transaction
.
Optional
options: getTransactionOptionsOptional
verbosity: VerbosityOptional
rpc_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.
Optional
rpc_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.
Optional
rpc_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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
maybe_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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
options: 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.
Optional
options: 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.
Optional
options: queryContractDictOptionsDeserialize query_contract_dict_options from a JavaScript object.
JavaScript function 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.
Optional
verbosity: 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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
options: 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.
Optional
options: 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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
maybe_id: stringOptional
verbosity: VerbosityOptional
rpc_address: stringOptional
options: getAccountOptionsOptional
options: 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.
Optional
options: getBalanceOptionsJavaScript Alias for get_dictionary_item
Optional
options: getDictionaryItemOptionsOptional
options: 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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
verbosity: VerbosityOptional
rpc_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.
Optional
maybe_id: stringOptional
verbosity: VerbosityOptional
rpc_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.
Optional
timeout_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.
Optional
timeout_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.
Optional
timeout_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.
Optional
timeout_duration: number
JavaScript Alias for
put_deploy
.