UNPKG

@blockfrost/blockfrost-cardano-cli

Version:

Drop-in(ish) replacement for cardano-cli powered by Blockfrost

53 lines (52 loc) 1.64 kB
import { Responses } from '@blockfrost/blockfrost-js'; export declare const stringToBigInt: (value: string | null) => string | bigint | null; export declare const stringify: (obj: any) => string; export declare const stripQuotes: (str: string) => string; export declare const bech32ToHex: (bech32Addr: string, stripPrefix?: boolean) => string; export declare const transformPoolRelays: (relays: Responses['pool_relays']) => ({ 'single host name': { port: number; dnsName: string; }; 'single host address'?: undefined; } | { 'single host address': { IPv6: string | null; port: number; IPv4: string | null; }; 'single host name'?: undefined; })[]; export declare const transformPoolUpdateCert: (poolHex: string, cert: Responses['tx_content_pool_certs'][number]) => { publicKey: string; cost: string; metadata: { hash: string | null | undefined; url: string | null | undefined; }; vrf: string; owners: string[]; pledge: string | bigint | null; rewardAccount: { network: string; credential: { 'key hash': string; }; }; margin: number; relays: ({ 'single host name': { port: number; dnsName: string; }; 'single host address'?: undefined; } | { 'single host address': { IPv6: string | null; port: number; IPv4: string | null; }; 'single host name'?: undefined; })[]; }; export declare const getNetworkFromRewardAccount: (rewardAccount: string) => "Testnet" | "Mainnet";