File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11defmodule EOSRPC.AccountHistory do
22 @ moduledoc """
33 EOS Account History Apis Wrapper for Elixir
4+
5+ Based on: https://developers.eos.io/eosio-nodeos/reference on History section
46 """
57
68 use Tesla
@@ -10,6 +12,18 @@ defmodule EOSRPC.AccountHistory do
1012 plug ( Tesla.Middleware.JSON )
1113 plug ( EOSRPC.Middleware.Error )
1214
15+
16+ @ doc """
17+ Gets all actions for a given account
18+ """
19+ def get_actions ( account_name ) do
20+ "get_actions" |> url ( ) |> post ( % { account_name: account_name } )
21+ end
22+
23+ def get_actions! ( account_name ) do
24+ unwrap_or_raise ( get_actions ( account_name ) )
25+ end
26+
1327 @ doc """
1428 Get transaction data
1529 """
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule EOSRPC.Chain do
22 @ moduledoc """
33 EOSRPC Wallet Wrapper for Elixir
44
5- Based on: https://developers.eos.io/eosio-nodeos/v1.2.0/reference
5+ Based on: https://developers.eos.io/eosio-nodeos/v1.2.0/reference on Chain section
66 """
77
88 use Tesla
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ defmodule EOSRPC.History do
77 @ callback get_actions ( account_name :: binary , post :: integer , offset :: integer ) :: any
88 @ callback url ( url :: binary ) :: binary
99
10+ use Tesla
11+
1012 import EOSRPC
1113
1214 @ doc """
You can’t perform that action at this time.
0 commit comments