EndpointUpdated 80efe7ec| inputs | 0 | bytes32 | gtin | |
| 1 | bytes32 | new_endpoint_id |
Registered cf648552| inputs | 0 | bytes32 | gtin | |
| 1 | bytes32 | company_prefix | ||
| 2 | bytes32 | endpoint_id |
Transferred e7ad013b| inputs | 0 | bytes32 | gtin | |
| 1 | bytes32 | new_company_prefix | ||
| 2 | bytes32 | new_endpoint_id |
acceptTransfer dddd36a5Accept transfer of GTIN by the destination company
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product to accept |
| 1 | bytes32 | _endpoint_id | New company's endpoint identity to assign to the GTIN | |
| 2 | string | _previous_endpoint_url | URL of the current GTIN owner company endpoint to be saved as a snapshot. Required here due to limitation of Solidity. |
get 8eaa6ac0Get information about GTIN
| inputs | 0 | bytes32 | _query_gtin | GTIN-13 of the product |
| outputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| 1 | uint256 | _owners_count | Total number of the GTIN owners (previous ones and the current) | |
| 2 | bytes32[] | _owners_company_prefix | Company prefixes of all the owners, last one is the current | |
| 3 | bytes32 | _current_endpoint_id | Endpoint identity of the current owner company assigned to the GTIN |
get 9507d39aGet information about GTIN by the index
| inputs | 0 | uint256 | _index | Index of the GTIN in the Directory |
| outputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| 1 | uint256 | _owners_count | Total count of the owners in the history of the GTIN | |
| 2 | bytes32[] | _owners_company_prefix | GS1 company prefixes of all the owners in the history of GTIN, last is the current owner | |
| 3 | bytes32 | _current_endpoint_id | Endpoint identity of the current owner company assigned to the GTIN |
getCount a87d942cGet number of registered GTINs
| outputs | 0 | uint256 | _total_gtins | Total number of GTINs |
getEndpointId a0e7a720Retrieve endpoint identity of the current owner company of the GTIN
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
getOwner deb931a2Retrieve current owner company of the GTIN
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| outputs | 0 | bytes32 | _owner_company_prefix | GS1 company prefix |
getPrevEndpointUrl 1302d3f1Retrieve endpoint snapshot URL of the previous GTIN owner companies
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| 1 | uint256 | _owner_index | Index of the ownership (0 - manufacturer) | |
| outputs | 0 | string | _endpoint_url | Endpoint URL snapshot |
initTransfer d28bfd76Initiate GTIN transfer to another company by the GTIN owner
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product to transfer |
| 1 | bytes32 | _company_prefix_dest | GS1 company prefix of the destination company |
register 2f926732Register product's GTIN
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product, must match company's prefix |
| 1 | bytes32 | _endpoint_id | Company's endpoint identity to assign |
updateEndpointId 23d40774Set a new endpoint identity to the GTIN
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| 1 | bytes32 | _new_endpoint_id | Company's endpoint identity to assign |
updatePrevEndpointUrl 6d02fcc5Update endpoint snapshot URL of the previous owner
| inputs | 0 | bytes32 | _gtin | GTIN-13 of the product |
| 1 | uint256 | _owner_index | Index of the ownership (0 - manufacturer) | |
| 2 | string | _endpoint_url | New endpoint URL value |