Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested standard for transaction meta-data storage #7

Open
aufbakanleitung opened this issue Oct 26, 2021 · 0 comments
Open

Suggested standard for transaction meta-data storage #7

aufbakanleitung opened this issue Oct 26, 2021 · 0 comments

Comments

@aufbakanleitung
Copy link

With the Nano community we've developed a standardised json format for storing transaction meta-data. This information is not only useful to a user for understanding their own transaction history, but it would also form the basis for important functions like calculating capital gains tax or leaving paper trails, which are directly relevant to business adoption. If all Nano wallets would adopt this format it would smooth the third party application development.

Kindly take a look at this example:

{
  "version": "1.0",
  "accounts": [
    {
      "protocol":"Nano",
      "address": "nano_1ebq356ex7n5efth49o1p31r4fmuuoara5tmwduarg7b9jphyxsatr3ja6g8",
      "private_name":"Bob's gas n' grocery wallet",
      "public_name":"Bob Dobson",
      "modified": 1634718547,
      "accounting_unit": "USD",
      "protocol_spec":{
        "representative":"nano_1ebq356ex7n5efth49o1p31r4fmuuoara5tmwduarg7b9jphyxsatr3ja6g8"
       },
      "wallet_spec":{
         "wallet_name":"Natrium",
         "custom_fields":"Arbitrary data"
       },
      "transactions": [
        {
          "uid": "C1150C61D10C7E42F7F9494C205A924D0CEB55683F8BAA723C89DCC038E84C42",
          "identifier": "65146",
          "published": 1624430775,
          "confirmed": 1624430776,
          "sendrec":"send",
          "amount": 6782692307000000000000000000000,
          "value": 35.27,
          "memo": "10.003 gallons unleaded at pump #7",
          "transactee": "Circle K Gas Station, 2011 N Lincoln Ave, Urbana IL 61801",
          "protocol-spec":{
              "index":107,
              "transactee_address":"nano_1natrium1o3z5519ifou7xii8crpxpk8y65qmkih8e8bpsjri651oza8imdd"
           },
           "wallet_spec":{}
        }, ... ]
    }, ... ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant