UNPKG

@unspent/phi

Version:

a collection of anyone can spend contracts

59 lines 1.47 kB
export interface UtxPhiIface { toString(): string; asText(): string; toOpReturn(hex: boolean): Uint8Array | string; execute(exAddress: string, fee: bigint, utxos?: Utxo[], debug?: boolean): Promise<string>; getAddress(): string; getBalance(): Promise<bigint>; getOutputLockingBytecodes(hex: boolean): string[] | Uint8Array[]; isSpecial(): boolean; } export interface ContractOptions { version?: number; network?: string; } export interface ElectrumUtxo { tx_pos: number; value: number; tx_hash: string; height: number; token_data?: { amount: string; category: string; nft?: { capability: 'none' | 'mutable' | 'minting'; commitment: string; }; }; } export interface Utxo { txid: string; vout: number; satoshis: bigint; token?: TokenDetails; } export interface TokenDetails { amount: bigint; category: string; nft?: { capability: 'none' | 'mutable' | 'minting'; commitment: string; }; } export interface ParsedContractI { code: string; options: { version: number; network: string; }; args: Uint8Array[]; lockingBytecode: Uint8Array; address: string; } export declare const Network: { MAINNET: "mainnet"; TESTNET: "testnet"; REGTEST: "regtest"; }; export declare type Network = typeof Network[keyof typeof Network]; //# sourceMappingURL=interface.d.ts.map