interface WalletApi {
    address.get: (() => Promise<`ak_${string}`[]>);
    address.subscribe: ((p: {
        type: SUBSCRIPTION_TYPES;
        value: "connected" | "current";
    }) => Promise<{
        address: Accounts;
        subscription: ("connected" | "current")[];
    }>);
    connection.close: ((p: any) => void);
    connection.open: ((p: {
        connectNode: boolean;
        icons?: Icons;
        name: string;
        version: 1;
    }) => Promise<WalletInfo & {
        node?: Node;
    }>);
    data.unsafeSign: ((p: {
        data: `ba_${string}`;
        onAccount: `ak_${string}`;
    }) => Promise<{
        signature: `sg_${string}`;
    }>);
    delegation.sign: ((p: {
        delegation: `ba_${string}`;
        onAccount: `ak_${string}`;
    }) => Promise<{
        signature: `sg_${string}`;
    }>);
    message.sign: ((p: {
        message: string;
        onAccount: `ak_${string}`;
    }) => Promise<{
        signature: string;
    }>);
    networkId.update: ((a: NetworkToSelect) => Promise<null>);
    transaction.sign: ((p: {
        innerTx?: boolean;
        networkId: string;
        onAccount: `ak_${string}`;
        returnSigned: boolean;
        tx: `tx_${string}`;
    }) => Promise<{
        signedTransaction?: `tx_${string}`;
        transactionHash?: Partial<SignedTx> & {
            hash: `th_${string}`;
            rawTx: `tx_${string}`;
        };
    }>);
    typedData.sign: ((p: {
        aci: AciValue;
        data: `cb_${string}`;
        domain: Domain;
        onAccount: `ak_${string}`;
    }) => Promise<{
        signature: `sg_${string}`;
    }>);
}

Properties

address.get: (() => Promise<`ak_${string}`[]>)
address.subscribe: ((p: {
    type: SUBSCRIPTION_TYPES;
    value: "connected" | "current";
}) => Promise<{
    address: Accounts;
    subscription: ("connected" | "current")[];
}>)
connection.close: ((p: any) => void)
connection.open: ((p: {
    connectNode: boolean;
    icons?: Icons;
    name: string;
    version: 1;
}) => Promise<WalletInfo & {
    node?: Node;
}>)
data.unsafeSign: ((p: {
    data: `ba_${string}`;
    onAccount: `ak_${string}`;
}) => Promise<{
    signature: `sg_${string}`;
}>)
delegation.sign: ((p: {
    delegation: `ba_${string}`;
    onAccount: `ak_${string}`;
}) => Promise<{
    signature: `sg_${string}`;
}>)
message.sign: ((p: {
    message: string;
    onAccount: `ak_${string}`;
}) => Promise<{
    signature: string;
}>)
networkId.update: ((a: NetworkToSelect) => Promise<null>)
transaction.sign: ((p: {
    innerTx?: boolean;
    networkId: string;
    onAccount: `ak_${string}`;
    returnSigned: boolean;
    tx: `tx_${string}`;
}) => Promise<{
    signedTransaction?: `tx_${string}`;
    transactionHash?: Partial<SignedTx> & {
        hash: `th_${string}`;
        rawTx: `tx_${string}`;
    };
}>)
typedData.sign: ((p: {
    aci: AciValue;
    data: `cb_${string}`;
    domain: Domain;
    onAccount: `ak_${string}`;
}) => Promise<{
    signature: `sg_${string}`;
}>)