Metodo Solo Lato Client: Questo metodo è disponibile solo nel SDK TypeScript e non effettua chiamate JSON-RPC effettive al server. Costruisce le istruzioni di pagamento localmente.
Utilizzo dell'SDK TypeScript
const paymentInfo = await client.getPaymentInstruction({transaction: "base64EncodedTransaction",fee_token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",source_wallet: "sourceWalletPublicKey"});// Append paymentInfo.payment_instruction to your transaction
Struttura della Risposta
Il metodo restituisce un oggetto istruzione di pagamento con la seguente struttura:
{"original_transaction": "base64EncodedTransaction","payment_address": "3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE","payment_amount": 0,"payment_instruction": {},"payment_token": "exampleValue","signer_address": "3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE"}
Is this page helpful?