Ell
ell_send
Send a transaction. Send ELL from one account to another account.
Private: Requires authentication.
Curl Example:
Console Example
Console Example (Using Transaction Builder)
By default, when from()
is not called, the address of the loaded account is used.
By default, then senderPubKey()
is not called, the public key of the loaded account is used.
Calling nonce()
is optional. The current sender account's nonce will be automatically determined and set.
Returns:
Object
Field
Type
Description
id
String
The transaction hash
Output:
ell.balance
Returns a transaction builder that can be used to create a balance transaction using chain-able methods interface. The transaction builder calls ell_send
when the built transaction is ready to be sent to the node.
Create a new builder
Transaction Builder Methods
The build is an object that includes methods required to conveniently construct and sign a full transaction. These are the available methods:
Method
Argument Type
Return Type
Required
Description
senderPubKey
String
TxBuilder
False
Set the public key of the sender/signer. (Default: Public key of the loaded account)
from
String
TxBuilder
False
Set the sender's address. (Default: Address of the loaded account)
to
String
TxBuilder
True
The recipients address.
value
String
TxBuilder
True
The amount of ELL to send.
fee
String
TxBuilder
True
The amount of fee to pay.
nonce
String
TxBuilder
False
The next nonce of the account (current nonce + 1).
send
Finalizes and sends the transaction.
payload
Boolean
Returns the internal transaction that's being built.
packed
Base58Check
String
Finalizes and returns Base58 encoded version of the transaction
reset
Clears all collected data. Restore the builder to its zero state.
Full Console Example
Whenfrom()
is not called, the address of the loaded account is used.
WhensenderPubKey()
is not called, the public key of the loaded account is used.
Calling nonce()
is optional. The current sender account's nonce will be automatically determined and set.
By default, the transaction type is set to 1 = Balance Transaction.
Returns:
Object
Field
Type
Description
id
String
The transaction hash
Output:
ell_getBalance
Get the ELL balance of an account.
Parameters:
Argument
Type
Required
Description
address
String
True
The address of the account.
Curl Example:
Console Example
Returns:
String
Output:
ell_sendRaw
Send a base58 encoded transaction to the client for processing.
Parameters:
Argument
Type
Required
Description
encodedTx
String
True
The base58 encoded transaction
Curl Example:
Console Example
Returns:
Object
Field
Type
Description
id
String
The transaction hash
Output:
Last updated