Saline SDK

INTRO

  • Quickstart
    • Basic Usage
      • Initialize the SDK Client
      • Working with Accounts
      • Checking Balances
      • Creating and Signing Transactions
      • Checking Transaction Status
      • Asynchronous Operations
      • Using the Testnet Faucet
  • Overview
    • Key Features
    • Getting Started
    • Version Compatibility
  • Installation
    • Requirements
    • Basic Installation
    • Development Installation
  • Intents
    • Understanding the Intent System
    • Intent Primitives and Composites
      • Primitives
      • Composites
      • Modifiers
    • Expressions
    • Operator Syntax (Optional Shorthands)
    • Common Intent Patterns
      • Swap Intent Pattern
      • Multi-Signature Intent Pattern
      • Complete Swap Intent Example
    • Advanced Intent Patterns (Coming Soon)
      • Time-Limited Intent
      • Usage-Limited Intent
    • Best Practices
  • Changelog
    • Version 0.2.2 (2025-04-17)
    • Version 0.2.1 (2025-04-11)
    • Version 0.2.0 (2025-04-11)
    • Version 0.1.0 (2025-04-03)
  • Troubleshooting
    • Connection Issues
    • Transaction Errors
    • Account Issues
    • Using Async Methods
    • Auto-Generated Bindings
    • Getting Help

EXAMPLES

  • Examples
    • Examples Defined in SRC
    • Basic Transaction
    • Token Swap (Intent-Based)
    • Multi-Signature Intent
    • Restrictive Intent
    • Querying Intents
    • Intent Matching with Balance Verification
    • Using the Testnet Module
    • RPC Query Response Bindings

DEMO

  • Demo
    • Block Assets from Agent
    • Only Allow Interaction with Whitelisted Agents
    • Conditional Swap, Whitelist and Time-frame
    • LLM Agent With Mandate Awareness (MCP)
    • LLM Matcher market-making with MCP

API

  • Saline
  • Account
    • Account Management
      • Account
        • Account.create()
        • Account.from_mnemonic()
        • Account.__contains__()
        • Account.__getitem__()
        • Account.__init__()
        • Account.__iter__()
        • Account.__len__()
        • Account.__str__()
        • Account.create_subaccount()
        • Account.get_subaccount()
        • Account.list_subaccounts()
        • Account.set_default_subaccount()
        • Account.transfer()
      • Subaccount
        • Subaccount.__init__()
        • Subaccount.__str__()
        • Subaccount.sign()
        • Subaccount.public_key
  • Transaction
    • Bindings
      • All
        • All.children
        • All.from_json()
        • All.to_json()
      • AllW
        • AllW.children
        • AllW.from_json()
        • AllW.to_json()
      • Any
        • Any.threshold
        • Any.children
        • Any.from_json()
        • Any.to_json()
      • AnyW
        • AnyW.children
        • AnyW.from_json()
        • AnyW.to_json()
      • Arithmetic
        • Arithmetic.from_json()
        • Arithmetic.to_json()
        • Arithmetic.Add
        • Arithmetic.Div
        • Arithmetic.Mul
        • Arithmetic.Sub
      • Arithmetic2
        • Arithmetic2.lhs
        • Arithmetic2.operation
        • Arithmetic2.rhs
        • Arithmetic2.from_json()
        • Arithmetic2.to_json()
      • AutoW
        • AutoW.from_json()
        • AutoW.to_json()
      • Balance
        • Balance.from_json()
        • Balance.to_json()
      • Bridge
        • Bridge.bridgedAccount
        • Bridge.instruction
        • Bridge.from_json()
        • Bridge.to_json()
      • BridgeInstruction
        • BridgeInstruction.from_json()
        • BridgeInstruction.to_json()
      • Burn
        • Burn.token
        • Burn.amount
        • Burn.from_json()
        • Burn.to_json()
      • Counterparty
        • Counterparty.from_json()
        • Counterparty.to_json()
      • Delete
        • Delete.host
        • Delete.from_json()
        • Delete.to_json()
      • Expr
        • Expr.from_json()
        • Expr.to_json()
      • Finite
        • Finite.from_json()
        • Finite.to_json()
      • Instruction
        • Instruction.from_json()
        • Instruction.to_json()
      • Intent
        • Intent.from_json()
        • Intent.to_json()
      • Lit
        • Lit.value
        • Lit.from_json()
        • Lit.to_json()
      • Mint
        • Mint.prover
        • Mint.token
        • Mint.amount
        • Mint.from_json()
        • Mint.to_json()
      • NonEmpty
        • NonEmpty.list
        • NonEmpty.from_json()
        • NonEmpty.from_list()
        • NonEmpty.to_json()
        • NonEmpty.__init__()
      • OrIntent
        • OrIntent.host
        • OrIntent.intent
        • OrIntent.from_json()
        • OrIntent.to_json()
      • Receive
        • Receive.token
        • Receive.from_json()
        • Receive.to_json()
      • Relation
        • Relation.from_json()
        • Relation.to_json()
        • Relation.EQ
        • Relation.GE
        • Relation.GT
        • Relation.LE
        • Relation.LT
      • Restriction
        • Restriction.lhs
        • Restriction.relation
        • Restriction.rhs
        • Restriction.from_json()
        • Restriction.to_json()
      • Send
        • Send.token
        • Send.from_json()
        • Send.to_json()
      • SetIntent
        • SetIntent.host
        • SetIntent.intent
        • SetIntent.from_json()
        • SetIntent.to_json()
      • Signature
        • Signature.signer
        • Signature.from_json()
        • Signature.to_json()
      • Signed
        • Signed.nonce
        • Signed.signature
        • Signed.signee
        • Signed.signers
        • Signed.from_json()
        • Signed.to_json()
      • Temporary
        • Temporary.from_json()
        • Temporary.to_json()
      • Token
        • Token.from_json()
        • Token.to_json()
        • Token.BTC
        • Token.ETH
        • Token.SALT
        • Token.USDC
        • Token.USDT
      • Transaction
        • Transaction.instructions
        • Transaction.from_json()
        • Transaction.to_json()
      • TransferFunds
        • TransferFunds.source
        • TransferFunds.target
        • TransferFunds.funds
        • TransferFunds.from_json()
        • TransferFunds.to_json()
      • Var
        • Var.from_json()
        • Var.to_json()
      • Variable
        • Variable.from_json()
        • Variable.to_json()
      • VariableTag
        • VariableTag.from_json()
        • VariableTag.to_json()
        • VariableTag.Address
        • VariableTag.Amount
        • VariableTag.Count
        • VariableTag.List
      • Witness
        • Witness.from_json()
        • Witness.to_json()
      • dumps()
      • loads()
      • Core Classes
        • Transaction and Signing
        • Instructions
        • Intents
      • Enumerations
        • Token
        • Relation
        • Arithmetic
      • Utility Functions
        • dumps()
        • loads()
    • encodeSignedTx()
    • prepareSimpleTx()
    • print_tx_errors()
    • sign()
    • tx_is_accepted()
    • Instructions
      • set_intent()
      • swap()
      • transfer()
    • Serialization
      • decode_base64()
      • decode_network_tx()
      • encode_base64()
      • serialize_for_network()
    • Transaction Class
    • Transaction Operations
      • prepareSimpleTx()
      • encodeSignedTx()
      • sign()
    • Transaction Instructions
      • transfer()
      • swap()
      • set_intent()
    • Transaction Serialization
      • decode_base64()
      • decode_network_tx()
      • encode_base64()
      • serialize_for_network()
  • RPC
    • Client
      • Client.__init__()
      • Client.abci_query_async()
      • Client.get_all_balances_async()
      • Client.get_all_intents()
      • Client.get_balance_async()
      • Client.get_block()
      • Client.get_current_block()
      • Client.get_status()
      • Client.get_transactions()
      • Client.get_tx()
      • Client.get_wallet_info_async()
      • Client.tx_broadcast()
      • Client.tx_commit()
      • Client.tx_fire()
    • ParsedAllIntentsResponse
      • ParsedAllIntentsResponse.intents
    • ParsedIntentInfo
      • ParsedIntentInfo.addresses
      • ParsedIntentInfo.error
      • ParsedIntentInfo.intent_id
      • ParsedIntentInfo.parsed_intent
      • ParsedIntentInfo.raw_intent_data
    • ParsedWalletInfo
      • ParsedWalletInfo.parse_intent_to_json()
      • ParsedWalletInfo.address
      • ParsedWalletInfo.balances
      • ParsedWalletInfo.error
      • ParsedWalletInfo.parsed_intent
      • ParsedWalletInfo.raw_wallet_data
    • contains_binding_type()
    • parse_dict_to_binding_intent()
    • RPCError
  • Crypto
    • BLS Cryptography
      • BLS
        • BLS.PrivateKey
        • BLS.aggregate_signatures()
        • BLS.sign()
        • BLS.sk_to_pk()
        • BLS.verify()
        • BLS.verify_aggregate()
    • Key Derivation
      • debug_print()
      • derive_child_SK()
      • derive_key_from_path()
      • derive_master_SK()
      • hkdf_expand()
      • hkdf_extract()
      • main()
      • parent_SK_to_lamport_PK()
    • Crypto Module Interface
      • BLS
        • BLS.PrivateKey
        • BLS.aggregate_signatures()
        • BLS.sign()
        • BLS.sk_to_pk()
        • BLS.verify()
        • BLS.verify_aggregate()
      • derive_child_SK()
      • derive_key_from_path()
      • derive_master_SK()
Saline SDK
  • Search


© Copyright 2025, Rising Sea Labs.

Built with Sphinx using a theme provided by Read the Docs.