Transactions
Table of Contents
This is a resource for interacting with the transactions
endpoint provided by the Lisk public API.
Each of the following methods can be accessed via the transactions
property of an APIClient
instance.
get
This searches for a specified transaction in the system.
Parameters
options
: Please see the options in the following link: Core API documentation.
broadcast
This submits a signed transaction JSON for processing by the transaction pool.
Parameters
transaction
: This is the JSON representation of the transaction, i.e. returned by Transaction.toJSON()
Examples
client.transactions.broadcast({
id: '222675625422353767',
amount: '150000000',
fee: '1000000',
type: 0,
timestamp: 28227090,
senderId: '12668885769632475474L',
senderPublicKey: '2ca9a7143fc721fdc540fef893b27e8d648d2288efa61e56264edf01a2c23079',
senderSecondPublicKey: '2ca9a7143fc721fdc540fef893b27e8d648d2288efa61e56264edf01a2c23079',
recipientId: '12668885769632475474L',
signature: '2821d93a742c4edf5fd960efad41a4def7bf0fd0f7c09869aed524f6f52bf9c97a617095e2c712bd28b4279078a29509b339ac55187854006591aa759784c205',
signSignature: '2821d93a742c4edf5fd960efad41a4def7bf0fd0f7c09869aed524f6f52bf9c97a617095e2c712bd28b4279078a29509b339ac55187854006591aa759784c205',
signatures: [
'72c9b2aa734ec1b97549718ddf0d4737fd38a7f0fd105ea28486f2d989e9b3e399238d81a93aa45c27309d91ce604a5db9d25c9c90a138821f2011bc6636c60a',
],
asset: {},
})
.then(res => {
console.log(res.data);
})