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

Missed definitions of transaction properties provided by node in v3 #1850

Open
davidyuk opened this issue Jul 22, 2024 · 0 comments
Open

Missed definitions of transaction properties provided by node in v3 #1850

davidyuk opened this issue Jul 22, 2024 · 0 comments
Assignees

Comments

@davidyuk
Copy link
Member

davidyuk commented Jul 22, 2024

tx:
description: The transaction
type: object
ttl:

In js sdk I'm using autorest which converts snake_case properties to camelCase and this stops working if properties are not defined. So, instead

          tx: {
            accountId: 'ak_2Fh6StA76AKdy8qsGdkEfkQyVmAYc2XE1irWRnDgXKhmBLKoXg',
            nameFee: 500000000000000,
            nameId: 'nm_27MpcZebrNCLB8AWaJBjp6TrzdjwMWKDJQDBnTWb82E2sut7P7',
            nameSalt: 0,
            ...
          },

I'm getting

          tx: {
            account_id: 'ak_2Fh6StA76AKdy8qsGdkEfkQyVmAYc2XE1irWRnDgXKhmBLKoXg',
            name_fee: 500000000000000,
            name_id: 'nm_27MpcZebrNCLB8AWaJBjp6TrzdjwMWKDJQDBnTWb82E2sut7P7',
            name_salt: 0,
            ...
          },

There should be a way to reference tx definition from aenode's api.

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

2 participants