Handkit.Wallet.get_payment

You're seeing just the function get_payment, go back to Handkit.Wallet module for more information.
Link to this function

get_payment(client, txid)

View Source

Specs

get_payment(Handkit.Connect.t(), String.t()) :: {:ok, map()} | {:error, any()}

Returns transaction information from the given txid.

Must be a transaction created by the same connected app.

Example

iex> Handkit.Wallet.get_payment(client, txid)
{:ok, %{
  "app_action" => "like",
  "attachments" => [],
  "fiat_currency_code" => "GBP",
  "fiat_exchange_rate" => 115.72678751775005,
  "note" => "Hold my beer!🍺",
  "participants" => [
    %{
      "alias" => "nosetwo",
      "amount" => 5000,
      "display_name" => "Nose two",
      "profile_picture_url" => "https://res.cloudinary.com/hk7jbd3jh/image/upload/v1574787300/gntqxv6ed7sacwpfwumj.jpg",
      "response_note" => "",
      "type" => "user"
    }
  ],
  "satoshi_amount" => 5000,
  "satoshi_fees" => 131,
  "time" => 1624024631,
  "transaction_id" => "4c7b7cdc18702bb1a09c75a47bc2fa9630545761fbbd53b8c38735c73173e043",
  "type" => "send"
}}