@@ -217,6 +217,11 @@ type Value = Coin | Token;
217217
218218type SignedTransaction = string ;
219219
220+ type SignedIntentTransaction = {
221+ transactionHex : string ;
222+ intentEncode : string ;
223+ }
224+
220225interface Outpoint {
221226 id : string ;
222227 index : number ;
@@ -3162,9 +3167,9 @@ class Client {
31623167 * @param intent - The bridge intent information
31633168 * @returns Promise that resolves to a signed transaction
31643169 */
3165- async bridgeRequest ( { destination, amount, token_id, intent } : BridgeRequestArgs ) : Promise < SignedTransaction > {
3170+ async bridgeRequest ( { destination, amount, token_id, intent } : BridgeRequestArgs ) : Promise < SignedIntentTransaction > {
31663171 const tx = await this . buildBridgeRequest ( { destination, amount, token_id, intent } ) ;
3167- return this . signTransaction ( tx ) ;
3172+ return this . signIntentTransaction ( tx ) ;
31683173 }
31693174
31703175 /**
@@ -3596,6 +3601,14 @@ class Client {
35963601 } ) ;
35973602 }
35983603
3604+ async signIntentTransaction ( tx : Transaction ) : Promise < SignedIntentTransaction > {
3605+ this . ensureInitialized ( ) ;
3606+ return this . request ( {
3607+ method : 'signTransaction' ,
3608+ params : { txData : tx } ,
3609+ } ) ;
3610+ }
3611+
35993612 /**
36003613 * Signs a challenge message with the given address.
36013614 * Used to prove ownership of the address.
0 commit comments