Skip to content

DogeApi

martiliones edited this page Jun 12, 2023 · 1 revision

Wallets: DogeApi

dogeApi.multiplier

Bitcoin base multiplier

  • Type

    interface DogeApi {
      multiplier: 100000000;
    }

dogeApi.createTransaction()

Creates base bitcoin transaction

  • Type

    interface DogeApi {
      createTransaction(
        address: string,
        amount: number,
        fee: number
      ): Promise<SignedJsonTx>;
    }
  • References

    SignedJsonTx

dogeApi.getBalance()

Gets the account's balance

  • Type

    interface DogeApi {
      getBalance(): Promise<number>;
    }

dogeApi.getFee()

Gets fee

  • Type

    interface DogeApi {
      getFee(): number;
    }

dogeApi.getTransaction()

Gets transaction by the specified id

  • Type

    interface DogeApi {
      getTransaction(transactionId: string): BitcoinBaseTransaction;
    }
  • References

    BitcoinBaseTransaction

dogeApi.getTransactions()

Gets list of transactions by specified filters

  • Type

    interface DogeApi {
      getTransactions(options: {
        address: string;
        from: number;
      }): { hasMore: boolean; items: BitcoinBaseTransaction[] };
    }
  • References

    BitcoinBaseTransaction

dogeApi.getUnspents()

Gets unspents

  • Type

    interface DogeApi {
      getUnspents(address: string): Promise<DogeUnspents>;
    }
    
    interface DogeUnspents {
      amount: number;
      txid: string;
      vout: { address: string; value: number }[];
    }

dogeApi.sendTransaction()

Sends a signed transaction

  • Type

    interface DogeApi {
      sendTransaction(signedTx: any): Promise<any>;
    }
Clone this wiki locally