Skip to content
Nicholas edited this page Dec 9, 2018 · 1 revision

Welcome to the steem-transact wiki! This contains documentation for the package.




steem-transact

The package itself is a function which is used to instantiate an object containing the actual package functions.

Arguments:

client: a dsteem client used to broadcast transactions to the blockchain.

steem: a dsteem instance used for utilities.

prefix: an optional argument, only used for custom_json transactions. Starts every custom_json transaction id with the provided prefix.




.json

The json function broadcasts a custom_json transaction.

Arguments:

username: the username of the user to sign the transaction (without the @ symbol)

key: the private posting key of the user to sign the transaction

id: the id of the transaction to create (the prefix will be appended to the beginning).

json: the json string for the custom_json transaction

callback: the function to be called upon successful broadcast or error (arguments (err, result)).

Clone this wiki locally