github hiero-ledger/hiero-sdk-js v2.84.0-beta.1

pre-release2 days ago

v2.84.0-beta.1

This beta introduces support for HIP-1137 — the Registered Node Address Book — adding a new family of transactions, queries, and service endpoint types for managing registered nodes alongside the existing consensus node lifecycle. No breaking changes.

Enhancements

  • RegisteredNodeCreateTransaction, RegisteredNodeUpdateTransaction, RegisteredNodeDeleteTransaction: new transactions for the registered node lifecycle. #3846 HIP-1137

  • RegisteredNodeAddressBookQuery: query the registered node address book, with paging support. #3846

  • New service endpoint types — BlockNodeServiceEndpoint, MirrorNodeServiceEndpoint, RpcRelayServiceEndpoint, GeneralServiceEndpoint, RegisteredServiceEndpoint — describing the various service kinds a node can expose. #3846

  • NodeUpdateTransaction.addAssociatedRegisteredNode: associate a registered node with a consensus node from an existing node update flow. #3846

    Usage Example:

    import {
        BlockNodeServiceEndpoint,
        Client,
        RegisteredNodeAddressBookQuery,
        RegisteredNodeCreateTransaction,
    } from "@hiero-ledger/sdk";
    
    const client = Client.forTestnet().setOperator(operatorId, operatorKey);
    
    // Create a registered node exposing a block-node service endpoint.
    const createTx = await new RegisteredNodeCreateTransaction()
        .setAccountId(operatorId)
        .addServiceEndpoint(
            new BlockNodeServiceEndpoint()
                .setIpAddressV4("127.0.0.1")
                .setPort(50211),
        )
        .freezeWith(client)
        .sign(operatorKey);
    const receipt = await (await createTx.execute(client)).getReceipt(client);
    const registeredNodeId = receipt.registeredNodeId;
    
    // Read it back from the address book.
    const addressBook = await new RegisteredNodeAddressBookQuery()
        .setLimit(25)
        .execute(client);

See examples/registered-node-lifecycle.js for a full create → wait → associate → update → delete flow.

Don't miss a new hiero-sdk-js release

NewReleases is sending notifications on new releases.