Developer Questions

Ask a Question

XRP to Xah To something else

So this is more a general question, in simple terms i am building an app that takes one transaction and lets say splits it into 3, a little bit like the carbon off set - so i have a smart contract on the xahau network. Now anyone with an xahau wallet can use the app to pay for stuff. First point of clarity would be .... I am a new user and i have to ... 1. Download xahau wallet 2. Create my acount 3. Add some money onto my account 4. Purchase xrp to activate my account <br /> At this point as the app needs to call the smart contract on xah network, all transaction will have to be made in xah ? ie i cant then send xrp to the smart contract for the transaction (this confusion has arisen as i have been using hooks builder and the UI says transaction is in xrp but the transaction is in xah) If the answer is yes to all transaction have to be in xah then that would mean that the reciver of the funds would have to move his xah to the xrpl, trade to another coin then off ramp to fiat. <br /> <br />

Xumm JWT

# Is there any api to get jwt without scanning. *** I am working on a typescript library. Now I need that I can get jwt for a wellet address for minimal setup to mint an nft. Is there anyway so I can get nft from backend ? So frontend should not be involved.

Vesting Schedule

Is there a way to lock up issued tokens on the XRPL blockchain?

Terminating Signed Xaman Request

Is there a way to check a pending "Signed Request" and kill that payload? If have a situation whereas the request is submitted, but the user doesn't sign and submits another one. I suppose it's fine to let these expire on their own, but seems a little wasteful and would like to kill those previous request if followed by new request using the same r-account.

Extracting Signing URL from createAndSubscribe

I have a situation whereas I need to pull the URL returned from the createAndSubscribe event and right now it's posting the URL to my endpoint over and over whilst waiting for the signature. Is there another way I can just say, "hey, here is my sign SignIn payload, grab the URL and send it to the user for signing, but like I need to wait for the signing within the event. Does that make any sense at all?

How do i get the accountID from an xrpl address in my app ?

Up until now i have been using the Hook services to generate the accountID but how do i generate it in my app, i have gone through the various xrpl libs available and have yet to find anything - so is there utility in a lib somewhere to help with this ?

How can i increase my rate limit for sign in?

Currently, I am facing the error 'Max payload of 1587 exceeded.' I want to increase my rate limit.

How do you setup a QR Code for a token

I am looking to up setup a set trust line feature using the QR code similar to xrp services. Does anyone have any resources on how to do this?

Reading a memoField in a hook ..

So i have my ascii value for my memofield ... "rn294Ew7pGunMeYvxDo4DZLKt4c7dMFbBP"rhoHJNt6GgkJ1Xc66Z9eV25LYwirTiktkX\\x02 Which is made up of 2 xrpl addess's lets say a DAO address and a seller address the last 4 characters are \\x02. What i am interested in in the last two characters 02 as their represent the % amount that can be sent to the dao account and can be 00 to 99. This is then encoded and sent as part of the transaction. "Memos": [ { "Memo": { "MemoData": "22726e3239344577377047756e4d65597678446f34445a4c4b74346337644d466242502272686f484a4e743647676b4a31586336365a39655632354c5977697254696b746b5820783032", "MemoFormat": "", "MemoType": "" } } ] } I can successfully read both of the accounts and move the payload_ptr to that last 4 bytes ie 20783032 <br /> ``` sellerAccount[sellerAccountLength] = '\0'; payload_ptr += sellerAccountLength; ``` but i now need to read the contribution value of 02 ie 2 % and just cant figure out how to do it as the pointer always seems to hold 4 bytes and read the first ones - even if i move the pointer on +2 it doesnt read 02 ``` TRACESTR("Data Pointer Position Before Contribution: "); TRACEHEX(payload_ptr); // = 20783032 // if i then do uint8_t contribution = *payload_ptr; // the contribution is 36 as i should imagine its reading the first bytes //1. I tried int8_t contribution = *payload_ptr +2; // =3032 //2. I tried to get the last bytes like this but that didnt work uint8_t contribution_low = payload_ptr[2]; // Read the high nibble (first byte) uint8_t contribution_high = payload_ptr[3]; ``` In essence the question is if the pointer is looking at 4 bytes and the last 2 represent two numeric digits in ascii that i need to calculate a contribution how do i access those values and store them in a variable like .. uint8_t contribution = \*payload_ptr; .... i have spent most the day try to figure it out with chatgpt but i think that is stumped on this one ...

Send a transaction to my smart contract deployed on xaha network ...

So i have my smart contract deployed .... ..... with its mirrored xrpl account .... .... as you will see i sent a test transaction , which showed up on the xrpl account but not on the smart contract account. I am using xumm to send the transaction ie ... ``` const payload: any = { txjson: { TransactionType: 'Payment' as const, Amount: String(amount), Destination: destination, Memos: [ { Memo: { MemoData: memoField, MemoFormat: "33363331333733303337333033363633333633393336333333363331333733343336333933363636333636353332363633363631333733333336363633363635", } } ] }, } console.log() if (xummUserToken) { payload.user_token = xummUserToken } try { const subscription = await xummClient.payload.createAndSubscribe( payload, (event) => { console.log('New payload event:', event.data) if (Object.keys(event.data).indexOf('signed') > -1) { return event.data } } ) const resolvedEvent = await subscription.resolved return resolvedEvent } catch (error) { console.error('Error fetching XUMM payment URL:', error) throw new Error('Failed to fetch XUMM payment URL') } ```