API リファレンス
INTMAX WalletSDK のプロトコルフロー・メッセージ形式・Namespace の仕様
最終更新
INTMAX WalletSDK のプロトコルフロー・メッセージ形式・Namespace の仕様
最終更新
export type AbstractRequest<NS extends string = string, Params = unknown> = {
id: number;
namespace: NS | ChainedNamespace<NS>;
method: string;
params: Params;
metadata?: unknown;
};
export type AbstractSuccessResponse<NS extends string = string, Result = unknown> = {
id: number;
namespace: NS | ChainedNamespace<NS>;
method: string;
windowHandling: WindowHandling;
result: Result;
};
export type AbstractErrorResponse<NS extends string = string> = {
id: number;
namespace: NS | ChainedNamespace<NS>;
method: string;
windowHandling: WindowHandling;
error: { code: number; message: string };
};
export type AbstractResponse<NS extends string = string, Result = unknown> =
| AbstractSuccessResponse<NS, Result>
| AbstractErrorResponse<NS>;type ChainId = string | number;
type Namespace = "eip155" | "webmax";
type ChainedNamespace = `${Namespace}:${ChainId}`;type WindowHandling = "keep" | "close";