This document describes the Invoice Liquidity Network (ILN) Horizon and Soroban RPC collection for testnet.
The collection files are available in examples/api-collection/:
iln.bru— Bruno-compatible collection for Horizon and Soroban RPCiln.postman_collection.json— Postman v2.1 compatible equivalent
Get Account— fetch an account from HorizonGet Transactions— list recent transactions for an accountStream Contract Events— open a Horizon event stream for the ILN contract
simulateTransaction— simulate a transaction locallysendTransaction— submit a signed transaction to testnetgetTransaction— fetch transaction status by hashgetEvents— query ILN contract events directly from Soroban RPC
The collection is pre-populated with ILN testnet network URLs and contract IDs.
horizon_url:https://horizon-testnet.stellar.orgrpc_url:https://soroban-testnet.stellar.orgiln_contract_id:CCPASLHKRFBMVV5PZG3LKDGKFEDXZMB5U7DK42CVLUVWCMUCSRPVBIMOdistribution_contract_id:CAQGPMT3EQK4AABMIR66JJXEOCNCLPTDNXMS5OHZXH4LI24UYAF25V5Bgovernance_contract_id:CD7GOIU3GNK7EZHG7VI4NRVGMRCU7X2FOCAPQN6EGTSW46BY4EB
Other variables are included as placeholders for the account and transaction details you want to inspect:
account_idinvoice_idtransaction_hashget_invoice_tx_xdrsubmit_invoice_tx_xdrsigned_submit_invoice_tx_xdrget_events_cursor
The collection includes example argument patterns for the two most common ILN contract calls.
A submit_invoice contract call requires:
freelancer(Address)payer(Address)amount(i128)due_date(u64)discount_rate(u32)
In Stellar Soroban XDR terms, the arguments are structured like:
[
{"type": "address", "value": "G..."},
{"type": "address", "value": "G..."},
{"type": "i128", "value": "100000000"},
{"type": "u64", "value": "1717065600"},
{"type": "u32", "value": "300"}
]A get_invoice contract call requires a single invoice ID:
[
{"type": "u64", "value": "1"}
]These values are represented in the collection by the get_invoice_tx_xdr and submit_invoice_tx_xdr variables, which should contain the base64-encoded unsigned transaction envelope.
- Open
examples/api-collection/iln.bruin Bruno or importexamples/api-collection/iln.postman_collection.jsoninto Postman. - Replace placeholder variables such as
account_id,transaction_hash, and the XDR variables with real values. - Use the Horizon requests to inspect on-chain accounts and transactions.
- Use the Soroban RPC requests to simulate contract calls, submit signed transactions, and query contract events.
submit_invoiceand other write requests require a properly formed signed transaction envelope.simulateTransactioncan be used to validate contract invocation before submitting it.- The collection is intentionally testnet-focused and uses the official Stellar testnet Horizon and Soroban endpoints.