You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to determine the size of the transaction to ensure it is within the size limits, a few steps needs to be taken. Currently, the most accurate way to do this looks similar to this: const request = await transaction._makeRequestAsync(); proto.Transaction.encode(request).finish().length
Especially for new developers, a method on the transaction that returns this value would be very helpful for client side apps.
Solution
Add a convenience function that will return the protobuf size of the transaction that will actually be received by the network.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Problem
In order to determine the size of the transaction to ensure it is within the size limits, a few steps needs to be taken. Currently, the most accurate way to do this looks similar to this:
const request = await transaction._makeRequestAsync(); proto.Transaction.encode(request).finish().length
Especially for new developers, a method on the transaction that returns this value would be very helpful for client side apps.
Solution
Add a convenience function that will return the protobuf size of the transaction that will actually be received by the network.
Alternatives
No response
The text was updated successfully, but these errors were encountered: