Questions tagged [xdr]

For questions regarding XDR, External Data Representation, within Stellar.

Filter by
Sorted by
Tagged with
4
votes
1answer
35 views

Do transactions store information on when they were created?

I'm looking at the XDR definition for transaction and I can't find if there's any info on when a transaction was created. How do I look up date information for a transaction? I want to get some ...
0
votes
1answer
63 views

How to extract transaction hash out of XDR using Java Script?

iam having an XDR i want to know the transaction hash before i submit that to stellar. i did this in GO by unmarshal the XDR and used the builder to retrieve the hash. Is there nay way that i can do ...
1
vote
1answer
40 views

Getting error “XDR Write Error: undefined is not a Hyper” when trying to create XDR for custom operation

I am trying to run a forked version of the Stellar-Laboratory, I have forked the js-stellar-base and js-stellar-sdk accordingly, basically what I am trying to do is add a new operation on the ...
3
votes
1answer
32 views

Extra 0 byte at end of MemoText String

I extracted a TransactionEnvelope XDR several months ago for testing. It parses fine in the lab and the SDKs. I've tried parsing it by hand and there's something I don't understand. After the ...
3
votes
1answer
27 views

Why Stellar has totalCoins in every ledger header?

I'm looking at the xdr definition of the LedgerHeader structure and it has the totalCoin fields -- so, why does every ledger header need to have totalCoins recorded in it? How would that value ever ...
2
votes
1answer
158 views

How to decode stellar XDR

I am working on stellar blockchain and need to decode stellar XDR which is in GO language. I know how to decode using JavaScript but couldn't find a way to do it in GO. //JS code const {Transaction} ...
2
votes
0answers
41 views

Legal Question before going live

As I'm getting closer to have a product (timed payments) which I would like to activate on the Stellar public net, I'm wondering which legal aspects I have to consider. The setup for the current ...
4
votes
2answers
212 views

How to Build transaction XDR before sign it

I want to build a transaction and convert that as XDR before sign that transaction. As i found we need to build adn sign the transaction before convert that as XDR specially in java and GO SDK. Is ...
2
votes
2answers
110 views

How do I get the public keys from a transaction javascript

I am developing a site as college project and I cannot seem to understand how to implement StrKey to get the public key from a transaction. I can decode the xdr but cannot seem to understand how to ...
3
votes
1answer
43 views

Error when including 2 deps that both have stellar-base as a subdependency

When I include both stellar-hd-wallet and stellar-sdk in my project I get errors when requiring them both as stellar-base is included twice which also imports the generated XDR types twice causing the ...
4
votes
4answers
146 views

How does Java parse XDR information?

I need to get the transaction records. This information seems to be in XDR. How can I parse it in Java?
4
votes
1answer
37 views

Why does the first ledgers xdr file contains only 63 ledgers?

One ledger-headers file, named by ledger number as ledger/ww/xx/yy/ledger-wwxxyyzz.xdr.gz. The file contains a sequence of XDR structures of type LedgerHeaderHistoryEntry, one per ledger in the ...
4
votes
1answer
50 views

Where can I find history files structure (transactions and ledger files specifically)?

I'm trying to extract history files from the archive, I understood that transaction file is built of pairs: (32bit length,data), but when I try to extract the data from a single stream I get error: ...
5
votes
3answers
270 views

How to sign the XDR transaction envelop and and post it through java sdk?

I received the XDR envelope of a transaction. I need to sign it and submit using Java SDK. I am able to decode the XDR, but need help on how to sign and submit.
4
votes
1answer
642 views

Convert XDR to text

I want to convert the XDR fromat of the transaction to text using JS or java SDK in stellar.Or if there are any methods outside stellar also fine.
2
votes
1answer
119 views

ELI5: The XDR format

Bear with me, I am a relative beginner. I am implementing a Stellar SDK in R (not a standard SDK obviously) and I am at the stage where I need write functionality to build a transaction. I understand ...
6
votes
2answers
241 views

How to serialize, send over network, deserialize a transaction envelope for multiple signatures?

I'm trying to send over the network a base64 encoded string representing a partly signed envelope. I need to parse the string back to the original javascript object in order to add a new signature to ...
4
votes
1answer
81 views

Are the stellar history (XDR) files available in other regions or on other cloud providers

Most of the documentation or configuration info I have seen reference the history.stellar.org bucket on AWS S3 as the official source of history data. This bucket appears to be in the eu-west-1 (...
4
votes
1answer
265 views

How can I convert the built 'transaction' in XDR format?

Before I submit the transaction to the network I want to convert the 'transaction' in XDR format so that I can save it to database for future reference. I am using Stellar JS library. How to do it?
1
vote
2answers
364 views

How can I decode Ed25519 addresses to the regular 56 letters format?

I've been trying to use the stellar-archivist command 'dumpxdr' to unpack transactions files that are stored in the stellar core history However the in the results asset codes and addresses appear in ...
1
vote
1answer
190 views

How can I unpack Stellar's XDR history files?

Inside the Stellar core history archive there are these folders: bucket history ledger results scp transactions So inside of the transaction folder: └── transactions └── 00 └── 72 ├...
3
votes
1answer
118 views

Add and remove multiple signers in one transaction

Looking at the XDR spec there is only one signer allowed per transaction. Is there a reason for it, or there is a way to add multiple signers atomically? I am working on a new command line interface ...
17
votes
1answer
664 views

Why did the project settle on XDR for external data serialisation?

In recent years new protocols for externalising data have become popular. Schemes like Protocol Buffers & Avro are in common use. Stellar uses XDR, a scheme from the 1980s which is (as far as I ...
3
votes
1answer
203 views

How to get base64 envelope for transactions or operations?

I am trying to get the resulting base64 output of creating operations and signing transactions but I can't find the method in the transaction object. I know there is transaction.toEnvelope().toXDR() ...