All Questions
Tagged with deserialization buffer-layout
3 questions
1
vote
2
answers
750
views
Decode account data
I am trying to decode data from accounts.
This is the IDL for the data I want to decode:
{
"name": "deployment",
"type": {
"kind": "...
2
votes
1
answer
468
views
What's the difference of using Borsh and buffer layout to encode/decode?
I want to interact with a program and discover this website: https://bettercallsol.dev/
Basically it allows you to serialize the data using both Borsh & Buffer layout.
Despite they are two ...
1
vote
0
answers
106
views
How to have a Sequence of Union while using buffer-layout?
I'm trying to create some layouts for serum-dex Slab accounts, where,
export class Slab {
readonly header: SlabHeader;
readonly nodes: SlabNode[];
constructor(header: SlabHeader, nodes: ...