PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/sdk/lib/account
Просмотр файла: AccountId.d.ts
/**
* @typedef {import("../client/Client.js").default<*, *>} Client
*/
/**
* The ID for a crypto-currency account on Hedera.
*/
export default class AccountId {
/**
* @description Accepts the following formats as string:
* - as stand alone nubmers
* - as shard.realm.num
* - as shard.realm.hex (wo 0x prefix)
* - hex (w/wo 0x prefix)
* @param {string} text
* @returns {AccountId}
*/
static fromString(text: string): AccountId;
/**
* @param {Long | number} shard
* @param {Long | number} realm
* @param {EvmAddress | string} evmAddress
* @returns {AccountId}
*/
static fromEvmAddress(shard: Long | number, realm: Long | number, evmAddress: EvmAddress | string): AccountId;
/**
* @summary Accepts an evm address only as `EvmAddress` type
* @param {EvmAddress} evmAddress
* @returns {AccountId}
*/
static fromEvmPublicAddress(evmAddress: EvmAddress): AccountId;
/**
* @internal
* @param {HashgraphProto.proto.IAccountID} id
* @returns {AccountId}
*/
static _fromProtobuf(id: HashgraphProto.proto.IAccountID): AccountId;
/**
* @param {Uint8Array} bytes
* @returns {AccountId}
*/
static fromBytes(bytes: Uint8Array): AccountId;
/**
* @param {string} address
* @returns {AccountId}
*/
static fromSolidityAddress(address: string): AccountId;
/**
* @param {number | Long | import("../EntityIdHelper").IEntityId} props
* @param {(number | Long)=} realm
* @param {(number | Long)=} num
* @param {(PublicKey)=} aliasKey
* @param {(EvmAddress)=} evmAddress
*/
constructor(props: number | Long | import("../EntityIdHelper").IEntityId, realm?: (number | Long) | undefined, num?: (number | Long) | undefined, aliasKey?: (PublicKey) | undefined, evmAddress?: (EvmAddress) | undefined);
shard: Long.Long;
realm: Long.Long;
num: Long.Long;
aliasKey: PublicKey | null;
evmAddress: EvmAddress | null;
/**
* @type {string | null}
*/
_checksum: string | null;
/**
* @returns {string | null}
*/
get checksum(): string | null;
/**
* @returns {?EvmAddress}
*/
getEvmAddress(): EvmAddress | null;
/**
* @deprecated - Use `validateChecksum` instead
* @param {Client} client
*/
validate(client: import("../client/Client.js").default<any, any>): void;
/**
* @param {Client} client
*/
validateChecksum(client: import("../client/Client.js").default<any, any>): void;
/**
* @returns {string}
*/
toSolidityAddress(): string;
/**
* @internal
* @returns {HashgraphProto.proto.IAccountID}
*/
_toProtobuf(): HashgraphProto.proto.IAccountID;
/**
* @returns {Uint8Array}
*/
toBytes(): Uint8Array;
/**
* @returns {string}
*/
toString(): string;
/**
* @param {Client} client
* @returns {string}
*/
toStringWithChecksum(client: import("../client/Client.js").default<any, any>): string;
/**
* @param {this} other
* @returns {boolean}
*/
equals(other: AccountId): boolean;
/**
* @returns {AccountId}
*/
clone(): AccountId;
/**
* @param {AccountId} other
* @returns {number}
*/
compare(other: AccountId): number;
}
export type Client = import("../client/Client.js").default<any, any>;
import Long from "long";
import PublicKey from "../PublicKey.js";
import EvmAddress from "../EvmAddress.js";
import * as HashgraphProto from "@hashgraph/proto";
Выполнить команду
Для локальной разработки. Не используйте в интернете!