UNPKG

@ledgerhq/coin-icon

Version:
31 lines 1.27 kB
import { BigNumber } from "bignumber.js"; import type { IcxTransaction } from "icon-sdk-js"; import { CryptoCurrency } from "@ledgerhq/types-cryptoassets"; import { IconAccount } from "../types/index"; import { SignedOperation } from "@ledgerhq/types-live"; import { IconDelegationType } from "./api-type"; /** * Returns Testnet RPC URL if the current currency is testnet * @param {currency} currency */ export declare function getRpcUrl(currency: CryptoCurrency): string; export declare function getDebugRpcUrl(currency: CryptoCurrency): string; /** * Broadcast blob to blockchain */ export declare const broadcastTransaction: (signedOperation: SignedOperation, currency: CryptoCurrency) => Promise<{ hash: string; }>; export declare const submit: (signedOperation: SignedOperation, currency: CryptoCurrency) => Promise<{ hash: string; }>; /** * Obtain fees from blockchain */ export declare const getFees: (unsigned: IcxTransaction, account: IconAccount) => Promise<BigNumber>; /** * Get step price from governance contract */ export declare const getStepPrice: (account: IconAccount) => Promise<BigNumber>; export declare const getDelegation: (address: string, currency: CryptoCurrency) => Promise<IconDelegationType>; //# sourceMappingURL=node.d.ts.map