Added eea_getTransactionCount (#1722)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
MadelineMurray 5 years ago committed by GitHub
parent de3b712567
commit 1278bde762
  1. 38
      docs/Reference/Pantheon-API-Methods.md

@ -3814,10 +3814,6 @@ Deletes the specified privacy group.
`data` - Orion public key of privacy group deleter `data` - Orion public key of privacy group deleter
`data` - Privacy group ID
**Returns**
Privacy group ID Privacy group ID
!!! example !!! example
@ -3860,9 +3856,6 @@ Privacy groups containing only the specified members.
``` ```
```json tab="JSON result" ```json tab="JSON result"
{
"jsonrpc": "2.0",
"id": 1,
"result": [ "result": [
{ {
"privacyGroupId": "GpK3ErNO0xF27T0sevgkJ3+4qk9Z+E3HtXYxcKIBKX8=", "privacyGroupId": "GpK3ErNO0xF27T0sevgkJ3+4qk9Z+E3HtXYxcKIBKX8=",
@ -3878,6 +3871,37 @@ Privacy groups containing only the specified members.
} }
``` ```
### eea_getTransactionCount
Returns the private transaction count for specified account and privacy group.
**Parameters**
`data` - Account address
`data` - Privacy group ID
**Returns**
`quantity` - Integer representing the number of private transactions sent from the address to the specified privacy group.
!!! example
```bash tab="curl HTTP request"
curl -X POST --data '{"jsonrpc":"2.0","method":"eea_getTransactionCount","params":["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", "kAbelwaVW7okoEn1+okO+AbA4Hhz/7DaCOWVQz9nx5M="], "id":1}' http://127.0.0.1:8545
```
```bash tab="wscat WS request"
{"jsonrpc":"2.0","method":"eea_getTransactionCount","params":["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", "kAbelwaVW7okoEn1+okO+AbA4Hhz/7DaCOWVQz9nx5M="], "id":1}
```
```json tab="JSON result"
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
```
### eea_sendRawTransaction ### eea_sendRawTransaction
Creates a private transaction from a signed transaction, generates the transaction hash and submits it Creates a private transaction from a signed transaction, generates the transaction hash and submits it

Loading…
Cancel
Save