Skip to content

Commit

Permalink
Merge pull request #2 from Crypto2/master
Browse files Browse the repository at this point in the history
Add getActions
  • Loading branch information
alienzin authored Mar 4, 2019
2 parents 6576ee7 + 5cbc280 commit 16de3ae
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 16de3ae

Please sign in to comment.