Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SubstrateApp

class SubstrateApp {
constructor(
transport: any,
cla: number,
slip0044: number,
);
cla: number;
slip0044: number;
transport: Transport;
 
appInfo(): Promise<any>;
getAddress(
account: number,
change: number,
addressIndex: number,
requireConfirmation?: boolean,
scheme?: number,
): Promise<ResponseAddress>;
getAllowlistHash(): Promise<ResponseAllowlistHash>;
getAllowlistPubKey(): Promise<ResponseAllowlistPubKey>;
getVersion(): Promise<ResponseVersion>;
setAllowlistPubKey(pk: Buffer): Promise<any>;
sign(
account: number,
change: number,
addressIndex: number,
message: Buffer,
scheme?: number,
): Promise<ResponseSign>;
signSendChunk(
chunkIdx: number,
chunkNum: number,
chunk: any,
scheme?: number,
): Promise<any>;
uploadAllowlist(message: any): Promise<any>;
uploadSendChunk(
chunkIdx: number,
chunkNum: number,
chunk: any,
): Promise<any>;
 
static GetChunks(message: Buffer): Buffer[];
static serializePath(
slip0044: number,
account: number,
change: number,
addressIndex: number,
): Buffer;
static signGetChunks(
slip0044: number,
account: number,
change: number,
addressIndex: number,
message: Buffer,
): Buffer[];
}

§Constructors

§
new SubstrateApp(transport: any, cla: number, slip0044: number)
[src]

§Properties

§
cla: number
[src]
§
slip0044: number
[src]
§
transport: Transport
[src]

§Methods

§
appInfo(): Promise<any>
[src]
§
getAddress(account: number, change: number, addressIndex: number, requireConfirmation?: boolean, scheme?: number): Promise<ResponseAddress>
[src]
§
getAllowlistHash(): Promise<ResponseAllowlistHash>
[src]
§
getAllowlistPubKey(): Promise<ResponseAllowlistPubKey>
[src]
§
getVersion(): Promise<ResponseVersion>
[src]
§
setAllowlistPubKey(pk: Buffer): Promise<any>
[src]
§
sign(account: number, change: number, addressIndex: number, message: Buffer, scheme?: number): Promise<ResponseSign>
[src]
§
signSendChunk(chunkIdx: number, chunkNum: number, chunk: any, scheme?: number): Promise<any>
[src]
§
uploadAllowlist(message: any): Promise<any>
[src]
§
uploadSendChunk(chunkIdx: number, chunkNum: number, chunk: any): Promise<any>
[src]

§Static Methods

§
GetChunks(message: Buffer): Buffer[]
[src]
§
serializePath(slip0044: number, account: number, change: number, addressIndex: number): Buffer
[src]
§
signGetChunks(slip0044: number, account: number, change: number, addressIndex: number, message: Buffer): Buffer[]
[src]