Umi — API References - v1.3.0
    Preparing search index...
    ArweaveUploader: UploaderInterface & {
        arweave: () => Promise<TurboAuthenticatedClient>;
        fund: (amount: SolAmount, skipBalanceCheck: boolean) => Promise<void>;
        getBalance: () => Promise<SolAmount>;
        getStripeCheckoutSession: (
            amount: UsdAmount,
        ) => Promise<
            { checkoutSessionUrl: string; turboStorageCredits: BigNumber.Value },
        >;
        getTurboStorageCreditBalance: () => Promise<BigNumber.Value>;
        getUploadPriceFromBytes: (
            bytes: number,
        ) => Promise<{ solAmount: SolAmount; wincAmount: BigNumber }>;
    }

    Type Declaration

    • arweave: () => Promise<TurboAuthenticatedClient>

      Get the current Arweave Turbo client

    • fund: (amount: SolAmount, skipBalanceCheck: boolean) => Promise<void>

      Purchase non-refundable Turbo Storage Credits from the connected Arweave Bundler by transferring SOL to the Bundler's wallet

    • getBalance: () => Promise<SolAmount>

      Get the current SOL equivalent balance from connected Arweave Bundler

    • getStripeCheckoutSession: (
          amount: UsdAmount,
      ) => Promise<
          { checkoutSessionUrl: string; turboStorageCredits: BigNumber.Value },
      >

      Purchase non-refundable Turbo Storage Credits from the connected Arweave Bundler by generating a Stripe checkout session with a USD amount

    • getTurboStorageCreditBalance: () => Promise<BigNumber.Value>

      Get the current Turbo Storage Credit balance from connected Arweave Bundler

    • getUploadPriceFromBytes: (bytes: number) => Promise<{ solAmount: SolAmount; wincAmount: BigNumber }>

      Get the SOL and winc estimated price for an amount of bytes