Yalnızca İstemci Tarafı Metodu: Bu metot yalnızca TypeScript SDK'sında mevcuttur ve sunucuya gerçek JSON-RPC çağrıları yapmaz. Ödeme talimatlarını yerel olarak oluşturur.
TypeScript SDK Kullanımı
const paymentInfo = await client.getPaymentInstruction({transaction: "base64EncodedTransaction",fee_token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",source_wallet: "sourceWalletPublicKey"});// Append paymentInfo.payment_instruction to your transaction
Yanıt Yapısı
Metot, aşağıdaki yapıya sahip bir ödeme talimatı nesnesi döndürür:
{"original_transaction": "base64EncodedTransaction","payment_address": "3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE","payment_amount": 0,"payment_instruction": {},"payment_token": "exampleValue","signer_address": "3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE"}
Is this page helpful?