Ledger's Endpoints Estimated reading time: One minute Sections in this page POST /swap/payload To complete the transaction, you need to provide to the LiveApp SDK a payload that will be signed by the user’s device (e.g. Ledger Nano). POST /swap/payload Function: Create a binary payload which contains all information needed to fullfil a swap transaction. Input: provider: your id or name known by Ledger for identification purpose. quoteId: provider’s id of the quote request done at the begining of the flow. swapId: provider’s id of the ongoing swap transaction. This will be used by Ledger’s backend to retrieve the status of user swap transaction. payinAddress: provider’s address. payinAddressExtraId: tag or memo (optional). refundAddress: user’s refund address. This address is generaly the fromAddress. refundAddressExtraId: tag or memo (optional). payoutAddress: user’s payout transaction address. payoutAddressExtraId: tag or memo (optional). currencyFrom: from currency id, using your identifiers. currencyTo: to currency id, using you identifiers. amountToProvider: amount of currencyFrom that the provider expects to receive from client. amountToWallet: amount of currencyTo that the provider agrees to send to the client in exchange from amountToProvider. This amount must also include the network fees that the provider will pay to send the crypto to the user. nonce: value to use for device_transaction_id field in the protobuf payload. Output: payload in a binary format. In case of an error, returns the same payload as /check_quote. Did you find this page helpful? How would you improve this page for developers? I am a developer. Contributors will be chosen randomly to receive rewards. Check this box to send your email and participate. Ledger collects your email address to send you rewards for your contribution to improve the Developer Portal documentation. Learn more about how we manage your data and your rights. By providing your email address, you consent that Ledger may contact you for rewards delivery purposes. If you are part of the randomly selected contributors, we will send you an email to ask for your physical address and if necessary, ask you for additional information on the suggestion you made. Your information will only be available to Ledger and will be retained for no longer than 90 days. It may be transferred to non-European countries that ensure an adequate level of protection or under the standard contractual clauses adopted by the EU Commission. Please note that you may withdraw your consent at any time, access your data and request their rectification or deletion. You may also request the limitation of the processing of your data. To exercise your rights or for any question on the processing of your data, please contact LEDGER’s Data Protection Officer here. If nevertheless you believe LEDGER did not adequately address your concerns and mishandled your data, you may lodge a complaint with the personal data protection authority of your country. Provider's Endpoints ← Previous Provider's LiveApp Next →