xrpl_signTransaction
Request structure:
{
tx_json: xrpl.Transaction;
fee?: xrpl.Payment;
includesFee?: boolean;
options?: { autofill?: boolean; submit?: boolean };
}
Usage:
provider.request(
{
method: 'xrpl_signTransaction',
params: {
tx_json: {}, // XRP Ledger transaction object
options: { autofill: true; submit: true };
},
},
chainId: 'xrpl:0' // xrpl:0, xrpl:1, xrpl:2
);
Response
tx_json: xrpl.TransactionAndMetadata;
Example using wc-client
:
wc-client
:import core from '@joey-wallet/wc-client/core';
const methods = core.methods
const response = await methods.signTransaction({
provider,
chainId: chain,
request: {
tx_json: {
TransactionType: 'AccountSet',
Account: 'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
},
options: { autofill: true, submit: true },
},
});
Last updated