Questions tagged [xdr]
For questions regarding XDR, External Data Representation, within Stellar.
31
questions
0
votes
1answer
27 views
Send Transaction XDR To Other Account Using Stellar
Situation: I am trying to implement the Stellar 2-party multisignature escrow account with time lock & recovery Smart Contract example using the Java SDK. In transaction 3 (unlock transaction), ...
0
votes
1answer
37 views
xdrlib.Error: value=-915689825 not in enum ClaimableBalanceIDType, when I try to claim the created balance
so I'm trying to implement claimable_balances example using the python-sdk, I'm able to use append_create_claimable_balance_op and create a claimable balance from the sponsor's account.
but I don't ...
2
votes
1answer
66 views
How can I see actual transactions in the blockchain?
how could I inspect the transactions in the blockchain, like other cryptos having blockchain inspectors even online. I can get the ledger .xdrs but I can't open them I'm only seeing binary, but I'm ...
-1
votes
2answers
41 views
How can I get the value of the Stellar Transaction?
Greetings Stellar StackExchange community,
I would kindly require your assistance as I am having hard time figuring out how to get the incoming transaction amount value, and what would be the most ...
0
votes
2answers
52 views
How to decode sellingasset and buyingasset in python
I checked in public.offers from the core database. The sellingasset and buyingasset are base64 encoded.
Here's what I get from database and horizon api:
database
select buyingasset from offers ...
3
votes
1answer
39 views
How can we export all transactions between tween ledger numbers from stellar?
I need to export all the transactions and the data associated with them between two ledger points. I am guessing I need to get it from history files. How do I find out which json files I need to use ...
2
votes
1answer
34 views
How to rehydrate a transaction serialized in XDR to a transaction object that can be signed and submitted, with the JavaScript sdk?
The Transaction class has a .toXDR() method, but I don't see a fromXDR method.
I want to persist transactions in XDR base64, then load them, sign them, and send them.
There is a mention of a ...
4
votes
1answer
43 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
107 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
96 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
47 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
29 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
315 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
47 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
352 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
166 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
48 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
346 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
45 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 ...
5
votes
1answer
124 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
518 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
1k 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
162 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
380 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
89 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
330 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
514 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
296 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
153 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
881 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
252 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() ...