Skip to content

Commit

Permalink
Add getActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto2 committed Feb 28, 2019
1 parent 6576ee7 commit 5cbc280
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ChainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,26 @@ public function getBlock($id): string
);
}

/**
* Get actions related to an account
*
* string $account_name Account name to query
* int $pos Position in action log
* int $offset Offset in action log
*
* @param string $account_name
* @param int $pos
* @param int $offset
* @return string
*/
public function getActions($account_name, $pos, $offset): string
{
return $this->client->post(
$this->buildUrl('/history/get_actions'),
['account_name' => $account_name, 'pos' => $pos, 'offset' => $offset]
);
}

/**
* Get information related to a block header state
*
Expand Down

0 comments on commit 5cbc280

Please sign in to comment.