sendTransaction method handles the complete construction, signing, and broadcast of a transaction in one call. History methods return transactions grouped by the block they appear in, optionally filtered by address or payment ID. All calls go to POST http://127.0.0.1:8070/json_rpc.
sendTransaction
Constructs, signs, and broadcasts a transaction from one or more source addresses to one or more recipients. The wallet selects inputs, calculates change, and handles ring signature generation automatically.Request
List of addresses within the wallet to draw funds from. If omitted, the wallet uses all available addresses.
One or more recipients. Each object has:
address(string, required) — destination Fuego addressamount(integer, required) — amount to send in atomic unitsmessage(string) — optional encrypted message to include with the transfer
Address within the wallet where change outputs are sent. Must be one of the addresses managed by the wallet.
Transaction fee in atomic units. Defaults to
80000 (0.008 XFG). Must not be lower than the minimum.Ring size (number of decoy inputs per real input). Defaults to
4. Minimum is 2 (MINIMUM_MIXIN = 2). Higher values improve privacy but increase transaction size and fee.Optional 64-character hex payment ID to embed in the transaction. Use this for merchant reconciliation. Mutually exclusive with encoding a payment ID in an integrated address.
Optional raw hex extra data to include in the transaction’s extra field.
Block height at which the outputs become spendable by the recipient. Defaults to
0 (immediately spendable). Use this to create time-locked outputs.Response
Hex-encoded hash of the submitted transaction. Use this to track confirmation status.
The one-time secret key for this transaction. Keep this if you need to generate transaction proofs later.
getTransactions
Returns full transaction details grouped by block. Filter by address, payment ID, or block range. You must provide eitherblockHash (start from a specific block hash) or firstBlockIndex (start from a block index) — not both.
Request
Filter to transactions involving only these addresses. Omit to include all addresses in the wallet.
Hash of the block to start scanning from. Mutually exclusive with
firstBlockIndex.Block index to start scanning from (inclusive). Mutually exclusive with
blockHash.Number of blocks to scan forward from the starting point.
If provided, only return transactions that include this payment ID.
Response
One entry per block that contained relevant transactions.
getTransactionHashes
Returns only transaction hashes (not full details) grouped by block. Useful for lightweight scanning when you only need to know which transactions occurred, not their full content.Request
Parameters are identical togetTransactions: addresses, blockHash or firstBlockIndex, blockCount, and paymentId.
Response
One entry per block containing matching transactions.
getBlockHashes
Returns a sequential list of block hashes starting from a given index. Useful for building a local cache of the chain or verifying continuity.Request
The block index to start from (inclusive).
Number of block hashes to return.
Response
Block hashes in ascending height order, starting from
firstBlockIndex.