@meshsdk/mesh-csl
Version:
Cardano Off-chain Code APIs built on cardano-serialization-lib
13 lines (12 loc) • 813 B
TypeScript
import { PubKeyAddress, ScriptAddress } from '../type';
export declare const addrBech32ToHex: (bech32: string) => string;
export declare const addrBech32ToObj: <T>(bech32: string) => T;
export declare const parsePlutusAddressObjToBech32: (plutusDataAddressObject: PubKeyAddress | ScriptAddress, networkId?: number) => string;
export declare const parsePlutusAddressToBech32: (plutusHex: string, networkId?: number) => string;
export declare const serializeBech32Address: (bech32Addr: string) => {
pubKeyHash: string;
scriptHash: string;
stakeCredential: string;
};
export declare const scriptHashToBech32: (scriptHash: string, stakeCredential?: string, networkId?: number) => string;
export declare const v2ScriptToBech32: (scriptCbor: string, stakeCredential?: string, networkId?: number) => string;