Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
devportal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hive
devportal
Commits
a53184d1
Commit
a53184d1
authored
1 year ago
by
Dan Notestein
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Deploy to Production See merge request
!135
parents
bff2cc7c
b169dd6e
No related branches found
No related tags found
1 merge request
!135
Deploy to Production
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
_data/apidefinitions/account_history_api.yml
+70
-11
70 additions, 11 deletions
_data/apidefinitions/account_history_api.yml
with
76 additions
and
11 deletions
.gitlab-ci.yml
+
6
−
0
View file @
a53184d1
...
...
@@ -26,6 +26,8 @@ build:
# name: development
# only:
# - develop
tags
:
-
public-runner-docker
deploy_staging
:
stage
:
deploy_staging
...
...
@@ -46,6 +48,8 @@ deploy_staging:
name
:
development
only
:
-
develop
tags
:
-
public-runner-docker
deploy_master
:
stage
:
deploy_master
...
...
@@ -66,3 +70,5 @@ deploy_master:
name
:
production
only
:
-
master
tags
:
-
public-runner-docker
This diff is collapsed.
Click to expand it.
_data/apidefinitions/account_history_api.yml
+
70
−
11
View file @
a53184d1
...
...
@@ -86,25 +86,84 @@
-
'
[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-ops-in-block)'
-
'
[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
-
api_method
:
account_history_api.get_transaction
deprecated
:
true
purpose
:
|
Returns the details of a transaction based on a transaction id.
Returns the details of a transaction based on a transaction id
(including their signatures, operations like also a block_num it was included to)
.
* `id:string` trx_id of expected transaction
* `include_reversible:boolean` (optional) If set to true also operations from reversible block will be included if block_num points to such block.
parameter_json
:
{
"
id"
:
"
0000000000000000000000000000000000000000"
,
"
include_reversible"
:
true
}
expected_response_json
:
|
{
"ref_block_num": 0,
"ref_block_prefix": 0,
"expiration": "1970-01-01T00:00:00",
"operations": [],
"extensions": [],
"signatures": [],
"transaction_id": "0000000000000000000000000000000000000000",
"block_num": 0,
"transaction_num": 0
"jsonrpc": "2.0",
"error": {
"code": -32003,
"message": "Assert Exception:false: Unknown Transaction 0000000000000000000000000000000000000000",
"data": {
"code": 10,
"name": "assert_exception",
"message": "Assert Exception",
"stack": [
{
"context": {
"level": "error",
"file": "account_history_api.cpp",
"line": 143,
"method": "get_transaction",
"hostname": "",
"timestamp": "2023-11-09T19:07:07"
},
"format": "false: Unknown Transaction ${id}",
"data": {
"id": "0000000000000000000000000000000000000000"
}
}
]
}
},
"id": 1
}
parameter_json
:
{
"
id"
:
"
6fde0190a97835ea6d9e651293e90c89911f933c"
}
expected_response_json
:
|
{
"jsonrpc": "2.0",
"result": {
"ref_block_num": 36374,
"ref_block_prefix": 3218139339,
"expiration": "2018-04-09T00:29:06",
"operations": [
{
"type": "claim_reward_balance_operation",
"value": {
"account": "social",
"reward_hive": {
"amount": "0",
"precision": 3,
"nai": "@@000000021"
},
"reward_hbd": {
"amount": "0",
"precision": 3,
"nai": "@@000000013"
},
"reward_vests": {
"amount": "1",
"precision": 6,
"nai": "@@000000037"
}
}
}
],
"extensions": [],
"signatures": [
"1b01bdbb0c0d43db821c09ae8a82881c1ce3ba0eca35f23bc06541eca05560742f210a21243e20d04d5c88cb977abf2d75cc088db0fff2ca9fdf2cba753cf69844"
],
"transaction_id": "6fde0190a97835ea6d9e651293e90c89911f933c",
"block_num": 21401130,
"transaction_num": 25
},
"id": 1
}
curl_examples
:
-
'
{"jsonrpc":"2.0",
"method":"account_history_api.get_transaction",
"params":{"id":"6fde0190a97835ea6d9e651293e90c89911f933c"},
"id":1}'
-
'
{"jsonrpc":"2.0",
"method":"account_history_api.get_transaction",
"params":{"id":"6fde0190a97835ea6d9e651293e90c89911f933c",
"include_reversible":
true},
"id":1}'
...
...
This diff is collapsed.
Click to expand it.
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