Questions tagged [xdr]
For questions regarding XDR, External Data Representation, within Stellar.
35
questions
0
votes
0
answers
10
views
How to decode stellar XDR (ruby)
I want to get operation_id by decoding envelope_xdr.
I found the way to decode XDR by using golang.
How to decode stellar XDR
But, I couldn't find one by using ruby.
Can anyone help me to solve this?
0
votes
2
answers
329
views
Keep getting "Cannot Sign XDR" error message while trying to add assets
In a fully functional lobstr wallet with no issues, I signed out (on iPad) to look at another wallet and when I logged back into the first wallet, I could not add any assets or move assets between ...
0
votes
1
answer
46
views
Get Original value from Memo.Hash
I used a Hash input in the Memo.Hash and submitted the transaction. How can i read the memo field back?
input memo: ec8186367ee56880f7c48d4ae28ecd6cdafa455e8e49d35a691f41d95bcf95e6
trxn "memo&...
1
vote
0
answers
21
views
Error occurs when decoding XDR with SafeUnmarshalBase64
Error can be seen while trying to decode the stellar XDR with Golang as
switch '2' is not valid enum value for union
Following Go Code has been used.
var txe xdr.Transaction
errXDR := xdr....
0
votes
1
answer
111
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
1
answer
84
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 ...
3
votes
1
answer
121
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
2
answers
91
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
2
answers
72
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
1
answer
65
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
1
answer
51
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
1
answer
54
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
1
answer
190
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 ...
2
votes
1
answer
183
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 ...
4
votes
1
answer
71
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
1
answer
32
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
1
answer
439
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} ...
3
votes
0
answers
52
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
2
answers
467
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 ...
3
votes
2
answers
208
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
1
answer
52
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
4
answers
484
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
1
answer
53
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 ...
6
votes
1
answer
221
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
3
answers
743
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.
5
votes
1
answer
2k
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.
3
votes
1
answer
196
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
2
answers
597
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 ...
5
votes
1
answer
102
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
1
answer
384
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
2
answers
637
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
1
answer
347
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
├...
4
votes
1
answer
189
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
1
answer
1k
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 ...
4
votes
1
answer
268
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() ...