Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
ba1c879a
Commit
ba1c879a
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
Add tx/history/[pubkey]/pending in bma api
parent
01d1c4b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/api/bma/tx.py
+15
-1
15 additions, 1 deletion
duniterpy/api/bma/tx.py
with
15 additions
and
1 deletion
duniterpy/api/bma/tx.py
+
15
−
1
View file @
ba1c879a
...
@@ -49,8 +49,11 @@ HISTORY_SCHEMA = {
...
@@ -49,8 +49,11 @@ HISTORY_SCHEMA = {
"
receiving
"
:
{
"
receiving
"
:
{
"
$ref
"
:
"
#/definitions/transactioning_data
"
"
$ref
"
:
"
#/definitions/transactioning_data
"
},
},
"
pending
"
:
{
"
$ref
"
:
"
#/definitions/transactioning_data
"
}
},
},
"
required
"
:
[
"
sent
"
,
"
received
"
,
"
sending
"
,
"
receiving
"
]
"
required
"
:
[
"
sent
"
,
"
received
"
,
"
sending
"
,
"
receiving
"
,
"
pending
"
]
}
}
},
},
"
definitions
"
:
{
"
definitions
"
:
{
...
@@ -233,6 +236,17 @@ async def sources(client: Client, pubkey: str) -> dict:
...
@@ -233,6 +236,17 @@ async def sources(client: Client, pubkey: str) -> dict:
return
await
client
.
get
(
MODULE
+
'
/sources/%s
'
%
pubkey
,
schema
=
SOURCES_SCHEMA
)
return
await
client
.
get
(
MODULE
+
'
/sources/%s
'
%
pubkey
,
schema
=
SOURCES_SCHEMA
)
async
def
pending
(
client
:
Client
,
pubkey
:
str
)
->
dict
:
"""
GET pending transaction history for the given pubkey
:param client: Client to connect to the api
:param pubkey: Public key
:return:
"""
return
await
client
.
get
(
MODULE
+
'
/history/%s/pending
'
%
pubkey
,
schema
=
HISTORY_SCHEMA
)
async
def
blocks
(
client
:
Client
,
pubkey
:
str
,
start
:
int
,
end
:
int
)
->
dict
:
async
def
blocks
(
client
:
Client
,
pubkey
:
str
,
start
:
int
,
end
:
int
)
->
dict
:
"""
"""
GET public key transactions history between start and end block number
GET public key transactions history between start and end block number
...
...
This diff is collapsed.
Click to expand it.
Moul
@moul
mentioned in merge request
!49 (closed)
·
6 years ago
mentioned in merge request
!49 (closed)
mentioned in merge request !49
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment