SDK Interaction Flow
Trading logic stays inside the agent, while transaction preparation, verification, signing, and submission follow a controlled flow.1
Connect
The agent loads its configuration and connects to the Silvana orderbook server through the required gRPC services.
2
Trade
The agent reads market data, submits orders, processes RFQs when configured, and reacts to orderbook or settlement events.
3
Verify and Sign
For ledger-mutating actions, the server prepares the transaction, and the agent verifies the transaction before signing it locally.
4
Execute and Settle
The signed transaction is sent back to the service, submitted to Canton, and finalized through the DvP settlement flow.
Two-Phase Transaction Flow
All ledger-mutating operations use a two-phase signing protocol:- Agent calls
PrepareTransactionwith an operation type and parameters. - Server returns the full
prepared_transactionbytes and a hash. - Agent uses
tx-verifierto independently verify the transaction matches the requested operation (correct template, parties, amounts). - Agent signs the hash locally with its Ed25519 private key.
- Agent calls
ExecuteTransactionwith the signature. - Server submits the signed transaction to the Canton ledger.
TRANSFER_CC, TRANSFER_CIP56, ACCEPT_CIP56, PAY_DVP_FEE, PROPOSE_DVP, ACCEPT_DVP, PAY_ALLOC_FEE, ALLOCATE, EXECUTE_MULTICALL, SPLIT_CC, REQUEST_PREAPPROVAL, REQUEST_RECURRING_PREPAID, REQUEST_RECURRING_PAYASYOUGO, REQUEST_USER_SERVICE, LOCK_HOLDINGS, PROCESS_LOCK_UNLOCK_REQUESTS, RESIZE_LOCK, TERMINATE_LOCK.