@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
39 lines • 1.43 kB
TypeScript
import { Serializer, Serializable } from "../../bcs/serializer.js";
import { Deserializer } from "../../bcs/deserializer.js";
/**
* Represents a ChainId that can be serialized and deserialized.
*
* @extends Serializable
* @group Implementation
* @category Transactions
*/
export declare class ChainId extends Serializable {
readonly chainId: number;
/**
* Initializes a new instance of the class with the specified chain ID.
*
* @param chainId - The ID of the blockchain network to be used.
* @group Implementation
* @category Transactions
*/
constructor(chainId: number);
/**
* Serializes the current object using the provided serializer.
* This function helps in converting the object into a format suitable for transmission or storage.
*
* @param serializer - The serializer instance used to perform the serialization.
* @group Implementation
* @category Transactions
*/
serialize(serializer: Serializer): void;
/**
* Deserializes a ChainId from the provided deserializer.
* This function allows you to reconstruct a ChainId object from serialized data.
*
* @param deserializer - The deserializer instance used to read the serialized data.
* @group Implementation
* @category Transactions
*/
static deserialize(deserializer: Deserializer): ChainId;
}
//# sourceMappingURL=chainId.d.ts.map