near-ca-test
Version:
An SDK for controlling Ethereum Accounts from a Near Account.
17 lines (16 loc) • 683 B
TypeScript
import { Signature } from "viem";
import { MPCSignature } from "../types";
import { FinalExecutionOutcome } from "near-api-js/lib/providers";
export interface JSONRPCResponse<T> {
jsonrpc: string;
id: number | string | null;
result?: T;
error?: {
code: number;
message: string;
data?: unknown;
};
}
export declare function signatureFromTxHash(nodeUrl: string, txHash: string, accountId?: string): Promise<Signature>;
export declare function transformSignature(mpcSig: MPCSignature): Signature;
export declare function signatureFromOutcome(outcome: FinalExecutionOutcome | Omit<FinalExecutionOutcome, "final_execution_status">): Signature;