Table of Contents
Overview
FIO Relic is a fork of Antelope Memento and is intended to receive FIO Chain data stream from the FIO Chain Node via EOS Chronicle. FIO specific data is extracted from the stream and stored in a Relational Database (RDB) for future query via API. The following document is intended to be functional specification for the FIO Relic System.
Components
Data Transformation
This component is responsible for reading the data in the data stream and looking for FIO-specific data, parsing it, and inserting into RDB.
Example:
When an action registering FIO Domain is observed, insert it into domains table.
Query API
This component is responsible for receiving an API request, fetching relevant data from the RDB and returning to the API user.
Example:
Fetch all FIO Domains registered in specific time-frame.
Push Notification System
This component will be developed in Phase 2.
This component allows an API user to subscribe to specific events and then receive notification if such event has occurred during data transformation.
Examples
“Notify supplied webhook on every new FIO Domain registration”
“Notify when a FIO Request for specific FIO Handle is observed”
Specification
Data Model
blocks
Add only. Every block is a new entry.
Field | Description | Relationship |
---|---|---|
number | FROM CHAIN DATA Block number as generated by FIO Node | transactions → block_num |
id | FROM CHAIN DATA Block ID as generated by FIO Node | |
timestamp | FROM CHAIN DATA Timestamp as generated by FIO Node | |
producer | FROM CHAIN DATA Account name of producer which produced the block | |
schedule_version | FROM CHAIN DATA Version of BP schedule |
transactions
Add only. Every transaction is a new entry.
Field | Description | Relationship |
---|---|---|
block_number | FROM CHAIN DATA Block which contained this transaction | blocks → number |
id | FROM CHAIN DATA Transaction id | traces → transaction_id |
action_account | FROM CHAIN DATA Account name for action | |
action_name | FROM CHAIN DATA Action name | |
account | FROM CHAIN DATA Account which executed the transaction | |
tpid | FROM CHAIN DATA TPID which was recorded in tranaction | |
fee | FROM CHAIN DATA FIO Chain fee paid for this transaction | |
request_data | FROM CHAIN DATA Raw request data for primary trace | |
response_data | FROM CHAIN DATA Raw response data for primary trace | |
status | FROM CHAIN DATA Transaction status |
traces
Add only. Every trace is a new entry.
Field | Description | Relationship |
---|---|---|
id | GENERATED Trace ID - generated. | |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
action_ordinal | FROM CHAIN DATA Sequential order of trace in transaction | |
action_account | FROM CHAIN DATA Account name for trace | |
action_name | FROM CHAIN DATA Action name fro trace | |
request_data | FROM CHAIN DATA Raw request data for trace |
accounts
Add only. Every account created is a new entry.
Field | Description | Relationship |
---|---|---|
account | FROM CHAIN DATA Account name | account_activity → account domains → account handles → account token_transfers → payer_account token_transfers → payee_account token_staking → staker_account fio_requests → payee_account fio_requests → payer_account fio_data → payee_account fio_data → payer_account |
public_key | FROM CHAIN DATA Primary public key |
account_activity
Add only. Every activity is a new entry.
Field | Description | Relationship |
---|---|---|
account | FROM CHAIN DATA Account name | accounts → account |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
type | DEFINED BY RULES Type of activity. Options:
|
domains
Add and update. Represents current state of domains. Will be updated every time domain info changes. Records will not be removed, just marked burned.
Field | Description | Relationship |
---|---|---|
domain | FROM CHAIN DATA Domain name | domain_activity → domain |
account | FROM CHAIN DATA DEFINED BY RULES Account name of current owner | accounts → account |
is_public | FROM CHAIN DATA Is domain public | |
expiration | FROM CHAIN DATA Timestamp of domain expiration | |
status | DEFINED BY RULES Current status of domain. Options:
|
domain_activity
Add only. Every activity is a new entry
Field | Description | Relationship |
---|---|---|
domain | FROM CHAIN DATA Domain name | domains → domain |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
type | DEFINED BY RULES Type of activity. Options:
|
handles
Add and update. Represents current state of handles. Will be updated every time handle info changes. Records will not be removed, just marked burned.
Field | Description | Relationship |
---|---|---|
handle | FROM CHAIN DATA Handle name | handle_activity → handle pub_addresses → handle nft_signatures → handle fio_requests → payer_handle fio_requests → payee_handle fio_data → payer_handle fio_data → payee_handle |
domain | DEFINED BY RULES Domain on which handle is registered. Right of @ in user@domain | domains → domain |
account | FROM CHAIN DATA Account name of current owner | accounts → account |
encryption_key | FROM CHAIN DATA Encryption public key | |
encryption_key_set | DEFINED BY RULES Defines if encryption key was specifically set. Options:
| |
bundled_tx | FROM CHAIN DATA DEFINED BY RULES Bundled tx count | |
expiration | FROM CHAIN DATA DEFINED BY RULES Timestamp of handle expiration | |
status | DEFINED BY RULES Current status of handle. Options:
|
handle_activity
Add only. Every activity is a new entry
Field | Description | Relationship |
---|---|---|
handle | FROM CHAIN DATA Handle name | handles → handle |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
type | DEFINED BY RULES Type of activity. Options:
|
pub_addresses
Add, update, delete. Represents current state of mapped public addresses. Will be updated every time mapping changes. Records will be removed if needed.
Field | Description | Relationship |
---|---|---|
handle | FROM CHAIN DATA Handle name | handles → handle |
chain_code | FROM CHAIN DATA Chain code | |
token_code | FROM CHAIN DATA Token code | |
public_address | FROM CHAIN DATA Public Address |
nft_signatures
Add, update, delete. Represents current state of NFT signatures. Will be updated every time signatures are changed. Records will be removed if needed.
Field | Description | Relationship |
---|---|---|
handle | FROM CHAIN DATA Handle name | handles → handle |
chain_code | FROM CHAIN DATA Chain code | |
contract_address | FROM CHAIN DATA Contract address | |
token_id | FROM CHAIN DATA Token ID | |
url | FROM CHAIN DATA url | |
hash | FROM CHAIN DATA hash | |
metadata | FROM CHAIN DATA metadata |
token_transfers
Add only. Every transfer is a new entry. Includes internal transfers.
Field | Description | Relationship |
---|---|---|
payer_account | FROM CHAIN DATA DEFINED BY RULES Account of payer (sender) | accounts → account |
payee_account | FROM CHAIN DATA DEFINED BY RULES Account of payee (receiver) | accounts → account |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
amount | FROM CHAIN DATA DEFINED BY RULES Token amount in FIO | |
type | DEFINED BY RULES Type of transfer. Options:
| |
memo | FROM CHAIN DATA Memo in transfer |
token_staking
Add only. Every stake or unstake is a new entry. Includes internal transfers.
Field | Description | Relationship |
---|---|---|
staker_account | FROM CHAIN DATA Account of staker | accounts → account |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
amount | FROM CHAIN DATA DEFINED BY RULES Token amount in FIO, unstake will be negative |
fio_requests
Add and update. Represents current state of requests. Will be updated every time request status changes. Records will not be removed.
Field | Description | Relationship |
---|---|---|
id | FROM CHAIN DATA FIO Request ID | fio_data → request_id |
payee_handle | FROM CHAIN DATA Handle of payer | handles → handle |
payer_handle | FROM CHAIN DATA Handle of payee | handles → handle |
content | FROM CHAIN DATA Encrypted blob | |
payee_pub_key | FROM CHAIN DATA Public Key of payee | |
payer_pub_key | FROM CHAIN DATA Public Key of payer | |
status | FROM CHAIN DATA DEFINED BY RULES Status of request. Options:
| |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
fio_data
Add and update. Represents current state of FIO Data. Will be updated every time request status changes. Records will not be removed.
Field | Description | Relationship |
---|---|---|
request_id | FROM CHAIN DATA FIO Request ID (optional) | fio_requests → id |
payee_handle | FROM CHAIN DATA Handle of payer | handles → handle |
payer_handle | FROM CHAIN DATA Handle of payee | handles → handle |
content | FROM CHAIN DATA Encrypted blob | |
payee_pub_key | FROM CHAIN DATA Public Key of payee | |
payer_pub_key | FROM CHAIN DATA Public Key of payer | |
status | FROM CHAIN DATA Status of data. Currently always “sent_to_blockchain”. | |
transaction_id | FROM CHAIN DATA Transaction ID | transactions → id |
Parsing Rules
The parsing rules below are triggered by any of the following:
block
transaction
trace
specific
account
andname
insidetrace
→action_traces
→act
. It will be presented as Trigger: action_account:action:name, e.g. Trigger: eosio:newaccounttable deltas
and are organized by defining the table where record needs to be added as well as data source, typically from the trace.
Please pay attention to sequence of traces to accommodate relationships, e.g. when transferring tokens to a new account, the account has to be inserted into accounts table, before transfer is recorded.
Trigger: every block
Table: blocks NEW RECORD
Field | Source Data |
---|---|
number |
|
id |
|
timestamp |
|
producer |
|
schedule_version |
|
Trigger: every trace where action_ordinal = 1
Table: transactions NEW RECORD
Field | Source Data |
---|---|
block_number |
|
id |
|
action_account |
|
action_name |
|
account |
|
tpid |
|
fee |
|
request_data |
|
response_data |
|
status |
|
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id | Transaction ID |
type | “sender” |
Trigger: every trace where action_ordinal > 1
Table: traces NEW RECORD
Field | Source Data |
---|---|
id | Trace id. Auto-generated ID or transaction_id + action_ordinal, e.g. 770989df18fac96e48ca03d6702991d4462bebacceab8cf6b389507e998ca7fe-2 |
transaction_id |
|
action_ordinal |
|
action_account |
|
action_name |
|
request_data |
|
Trigger: fio.address:bind2eosio
Table: accounts NEW RECORD
Field | Source Data |
---|---|
account |
|
public_key |
|
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Trigger: fio.token:trnsfiopubky and action_ordinal = 1
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account |
|
payee_account |
|
transaction_id |
|
amount |
|
type | “transfer” |
memo |
Trigger: fio.token:trnsloctoks and action_ordinal = 1
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account |
|
payee_account |
|
transaction_id |
|
amount |
|
type | “transfer_locked” |
memo |
Trigger: fio.token:transfer and receiver = fio.token
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account |
|
payee_account |
|
transaction_id |
|
amount |
|
type | If If If If If If If |
memo |
|
Trigger: fio.token:issue and receiver = fio.token
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account | “eosio” |
payee_account |
|
transaction_id |
|
amount |
|
type | “token_mint” |
memo |
|
Trigger: fio.token:wraptokens and action_ordinal = 1
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account |
|
payee_account | “fio.oracle" |
transaction_id |
|
amount |
|
type | “wrap” |
memo |
Trigger: fio.token:stakefio and action_ordinal = 1
Table: token_staking NEW RECORD
Field | Source Data |
---|---|
staker_account |
|
transaction_id |
|
amount |
|
Trigger: fio.token:retire and action_ordinal = 1
Table: token_transfers NEW RECORD
Field | Source Data |
---|---|
payer_account |
|
payee_account | |
transaction_id |
|
amount |
|
type | “retire” |
memo |
|
Trigger: fio.token:unstakefio and action_ordinal = 1
Table: token_staking NEW RECORD
Field | Source Data |
---|---|
staker_account |
|
transaction_id |
|
amount | Negative of ( |
Trigger: fio.address:regdomain and action_ordinal = 1
Table: domains NEW RECORD or UPDATE (if exists based on domain
)
Field | Source Data |
---|---|
domain |
|
account |
|
is_public | “false” |
expiration |
|
status | “active" |
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | “register” |
Table: account_activity NEW RECORD
Only insert if trace
→ action_traces
→ act
→ data
→ actor
is not trace
→ action_traces
→ act
→ data
→ owner_fio_public_key
hashed to account.
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Trigger: fio.address:renewdomain and action_ordinal = 1
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
expiration |
|
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | “renew” |
Trigger: fio.address:xferdomain and action_ordinal = 1
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
account |
|
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | “transfer” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Trigger: fio.address:setdomainpub and action_ordinal = 1
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
is_public |
|
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | is_public: 1 type is “public” is_public: 0 type is “non-public” |
Trigger: fio.address:wrapdomain and action_ordinal = 1
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
account | “fio.oracle” |
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | “wrap” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account | “fio.oracle” |
transaction_id |
|
type | “receiver” |
Trigger: fio.address:xferescrow
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
account |
|
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id |
|
type | “unwrap” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Field | Source Data |
---|---|
account | “fio.oracle” |
transaction_id |
|
type | “sender” |
Trigger: fio.address:regaddress and action_ordinal = 1
Table: handles NEW RECORD or UPDATE (if exists based on handle
)
Field | Source Data |
---|---|
handle |
|
domain | Domain from ( |
account |
|
encryption_key |
|
encryption_key_set | “false” |
bundled_tx | “100” |
expiration |
|
status | “active" |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “register” |
Table: account_activity NEW RECORD
Only insert if trace
→ action_traces
→ act
→ data
→ actor
is not trace
→ action_traces
→ act
→ data
→ owner_fio_public_key
hashed to account.
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Table: pub_addresses NEW RECORD
Field | Source Data |
---|---|
handle |
|
chain_code | “FIO” |
token_code | “FIO” |
public_address |
|
Trigger: fio.address:renewaddress and action_ordinal = 1
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
bundled_tx | Increment current value by “100” |
expiration |
|
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “renew” |
Trigger: fio.address:xferaddress and action_ordinal = 1
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
account |
|
encryption_key |
|
encryption_key_set | “false” |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “transfer” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Table: pub_addresses DELETE and NEW RECORD
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
and add:
Field | Source Data |
---|---|
handle |
|
chain_code | “FIO” |
token_code | “FIO” |
public_address |
|
Table: nft_signatures DELETE
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
Trigger: fio.address:addbundles and action_ordinal = 1
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
bundled_tx | Increment current value by |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “add_bundles” |
Trigger: fio.address:addaddress and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “add_pubbadd” |
Table: pub_addresses NEW RECORD or UPDATE (if exists)
For each object in trace
→ action_traces
→ act
→ data
→ public_addresses
update or insert new record
Field | Source Data |
---|---|
handle |
|
chain_code |
|
token_code |
|
public_address |
|
Table: handles UPDATE
Update only if encryption_key_set = false and chain_code = “FIO” and (token_code = “FIO” or token_code = “*”)
Field | Source Data |
---|---|
handle |
|
encryption_key |
|
Trigger: fio.address:remaddress and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “rem_pubbadd” |
Table: pub_addresses DELETE
Remove each object in trace
→ action_traces
→ act
→ data
→ public_addresses
which matches
Field | Source Data |
---|---|
handle |
|
chain_code |
|
token_code |
|
public_address |
|
Trigger: fio.address:remalladdr and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “rem_all_pubbadd” |
Table: pub_addresses DELETE
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
Trigger: fio.address:addnft and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “add_nft” |
Table: nft_signatures NEW RECORD or UPDATE (if exists)
For each object in trace
→ action_traces
→ act
→ data
→ nfts
update or insert new record
Field | Source Data |
---|---|
handle |
|
chain_code |
|
contract_address |
|
token_id |
|
url |
|
hash |
|
metadata |
|
Trigger: fio.address:remnft and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “rem_nft” |
Table: nft_signatures DELETE
Remove each object in trace
→ action_traces
→ act
→ data
→ nfts
which matches
Field | Source Data |
---|---|
handle |
|
chain_code |
|
contract_address |
|
token_id |
|
url |
|
hash |
|
metadata |
|
Trigger: fio.address:remallnfts and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “rem_all_nft” |
Table: nft_signatures DELETE
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
Trigger: fio.address:updcryptkey and action_ordinal = 1
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
encryption_key |
|
encryption_key_set | “true” |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “upd_encryptkey” |
Trigger: fio.address:regdomadd and action_ordinal = 1
Execute same as for trigger fio.address:regdomain and fio.address:regaddress except insert only once into account_activity
with type “receiver”.
Trigger: fio.address:burnaddress and action_ordinal = 1
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
status | “burnt” |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “self_burn” |
Table: pub_addresses DELETE
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
Table: nft_signatures DELETE
Remove all objects matching in trace
→ action_traces
→ act
→ data
→ fio_address
Trigger: fio.address:newfundsreq and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “new_request” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Field | Source Data |
---|---|
account | Look-up |
transaction_id |
|
type | “receiver” |
Table: fio_requests NEW RECORD
Field | Source Data |
---|---|
id |
|
payee_handle |
|
payer_handle |
|
content |
|
payee_pub_key | Look-up |
payer_pub_key | Look-up |
status | “pending” |
transaction_id |
|
Trigger: fio.address:cancelfndreq and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “cancel_request” |
Table: fio_requests UPDATE
Field | Source Data |
---|---|
id |
|
status | “cancelled” |
Trigger: fio.address:recordobt and action_ordinal = 1
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id |
|
type | “record_obt” |
Table: account_activity NEW RECORD
Field | Source Data |
---|---|
account |
|
transaction_id |
|
type | “receiver” |
Field | Source Data |
---|---|
account | Look-up |
transaction_id |
|
type | “receiver” |
Table: fio_data NEW RECORD
Field | Source Data |
---|---|
request_id |
|
payee_handle |
|
payer_handle |
|
content |
|
payee_pub_key | Look-up |
payer_pub_key | Look-up |
status | “sent_to_blockchain” |
transaction_id |
|
Table: fio_requests UPDATE
Update only if trace
→ action_traces
→ act
→ data
→ fio_request_id
is present
Field | Source Data |
---|---|
id |
|
status | “sent_to_blockchain” |
Trigger: Table Deltas: added:false
and kvo->table:domains
Table: domains UPDATE
Field | Source Data |
---|---|
domain |
|
status | “burnt” |
Table: domain_activity NEW RECORD
Field | Source Data |
---|---|
domain |
|
transaction_id | |
type | “auto_burn” |
Trigger: Table Deltas: added:false
and kvo->table:fionames
Additional check needs to be performed:
If this handle burn was already processed as a result of
Trigger: fio.address:burnaddress and action_ordinal = 1
do not process this trigger.
Table: handles UPDATE
Field | Source Data |
---|---|
handle |
|
status | “burnt” |
Table: handle_activity NEW RECORD
Field | Source Data |
---|---|
handle |
|
transaction_id | |
type | “auto_burn” |
API
/get_blocks
Returns block information.
Request
Parameter | Description |
---|---|
time_start | OPTIONAL Filters block by |
time_end | OPTIONAL Filters block by |
producer | OPTIONAL Filters block by |
sort | OPTIONAL Sorting:
|
Query
Return records from blocks
which match all request parameters.
Sort by:
block_num_asc:
blocks
→number
ASCblock_num_desc:
blocks
→number
DESCtimestamp_asc:
blocks
→timestamp
ASCtimestamp_desc:
blocks
→timestamp
DESC
Response
Field | Source Data |
---|---|
number |
|
id |
|
timestamp |
|
producer |
|
schedule_version |
|
Example
[ { "number": "2", "id": "00000002953a8ab87a1855c0c40786e6a910a86cb2dd160f181418d05d233ea7", "timestamp": "2020-03-25T00:05:21.000", "producer": "eosio", "schedule_version": "1" } ]
/get_transactions
Returns transaction information.
Request
Parameter | Description |
---|---|
time_start | OPTIONAL Filters block by |
time_end | OPTIONAL Filters block by |
block_number | OPTIONAL Filters block by |
action_account | OPTIONAL Filters block by |
action_name | OPTIONAL Filters block by |
impacted_account | OPTIONAL Filters by impacted account (see below) |
impacted_account_direction | OPTIONAL Filters by impacted account direction (see below)
|
sort | OPTIONAL Sorting of results:
|
Query
Return records from transactions
which match all request parameters except:
impacted_account
is supplied:impacted_account_direction
is supplied and is “sender”Records from
transactions
whereimpacted_account
=account_activity->account
andtype
is “sender”
impacted_account_direction
is supplied and is “receiver”Records from
transactions
whereimpacted_account
=account_activity->account
andtype
is “receiver”
impacted_account_direction
is supplied and is “both” or not suppliedRecords from
transactions
whereimpacted_account
=account_activity->account
Please note: a single transaction can be affecting the same account as sender and receiver! In this case the same transaction should be returned twice.
Also include related data from:
blocks
timestamp
traces
All traces for transaction
token_transfers
id
matchestransaction_id
Include
payer_account
payee_account
amount
type
memo
domain_activity
id
matchestransaction_id
Include
domain
type
handle_activity
id
matchestransaction_id
Include
handle
type
token_staking
id
matchestransaction_id
Include
staker_account
amount
fio_requests
id
matchestransaction_id
Include
id
payee_handle
payer_handle
content
payee_pub_key
payer_pub_key
status
fio_data
id
matchestransaction_id
Include
request_id
payee_handle
payer_handle
content
payee_pub_key
payer_pub_key
status
Sort by:
timestamp_asc:
blocks
→timestamp
ASCtimestamp_desc:
blocks
→timestamp
DESC
Response
Field | Source Data |
---|---|
id |
|
block_number |
|
timestamp |
|
action_account |
|
action_name |
|
sender_account |
|
receiver_account |
|
impacted_account_direction | See
Blank if impacted_account not supplied. |
tpid |
|
fee |
|
request_data |
|
request_data |
|
status |
|
type_specific_data | This element contains data which is specific to certain types of transactions as follows
|
traces array |
For each trace:
|
Example
[ { } ]
TODO
reverse handle look-up
0 Comments