trait Network extends LazyLogging
- Alphabetic
- By Inheritance
- Network
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val horizon: HorizonAccess
- abstract def passphrase: String
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def account(pubKey: PublicKeyOps)(implicit ec: ExecutionContext): Future[AccountResponse]
Fetch details regarding the account identified by
pubKey
.Fetch details regarding the account identified by
pubKey
.- pubKey
the relevant account
- See also
- def accountData(pubKey: PublicKeyOps, dataKey: String)(implicit ec: ExecutionContext): Future[Array[Byte]]
Fetch value for single data field associated with an account.
Fetch value for single data field associated with an account.
- pubKey
the relevant account
- dataKey
the key for the data field
- See also
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assets(code: Option[String] = None, issuer: Option[PublicKeyOps] = None, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[AssetResponse]]
Fetch a stream of assets, optionally filtered by code, issuer or neither
Fetch a stream of assets, optionally filtered by code, issuer or neither
- code
optional code to filter by (defaults to
None
)- issuer
optional issuer account to filter by (defaults to
None
)- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def claim(id: ClaimableBalanceId)(implicit ex: ExecutionContext): Future[ClaimableBalance]
Fetch a single claimable balance by its id.
- def claimsByAsset(asset: Asset)(implicit ex: ExecutionContext): Future[Seq[ClaimableBalance]]
Fetch a list of claimable balances for an assest.
Fetch a list of claimable balances for an assest.
- asset
The asset to be claimed.
- def claimsByClaimant(claimant: PublicKeyOps)(implicit ex: ExecutionContext): Future[Seq[ClaimableBalance]]
Fetch a list of claimable balances for a claimant account.
Fetch a list of claimable balances for a claimant account.
- claimant
The account that can claim the balances.
- def claimsBySponsor(sponsor: PublicKeyOps)(implicit ex: ExecutionContext): Future[Seq[ClaimableBalance]]
Fetch a list of claimable balances for a sponsoring account.
Fetch a list of claimable balances for a sponsoring account.
- sponsor
the account that is sponsoring this balance.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def effects(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[EffectResponse]]
Fetch a stream of effects.
Fetch a stream of effects.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def effectsByAccount(account: PublicKeyOps, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[EffectResponse]]
Fetch a stream of effects for a given account.
Fetch a stream of effects for a given account.
- account
the relevant account
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def effectsByLedger(ledgerId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[EffectResponse]]
Fetch a stream of effects for a given ledger.
Fetch a stream of effects for a given ledger.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def effectsByOperation(operationId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[EffectResponse]]
Fetch a stream of effects for a given operation.
Fetch a stream of effects for a given operation. param cursor optional record id to start results from (defaults to
0
) param order optional order to sort results by (defaults toAsc
)- See also
- def effectsByTransaction(txnHash: String, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[EffectResponse]]
Fetch a stream of effects for a given transaction hash.
Fetch a stream of effects for a given transaction hash.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def feeStats()(implicit ex: ExecutionContext): Future[FeeStatsResponse]
Returns the fee statistics for the last ledger.
Returns the fee statistics for the last ledger.
- See also
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def info()(implicit ec: ExecutionContext): Future[NetworkInfo]
Fetches information on the Horizon and Core version underlying this network.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def ledger(ledgerId: Long)(implicit ex: ExecutionContext): Future[LedgerResponse]
Fetch details of a ledger by its id
Fetch details of a ledger by its id
- See also
- def ledgers(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ec: ExecutionContext): Future[LazyList[LedgerResponse]]
Fetch a stream of details about ledgers.
Fetch a stream of details about ledgers.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- lazy val masterAccount: KeyPair
The keypair for the master account for this network
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val networkId: Array[Byte]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def offers(sponsor: Option[PublicKeyOps] = None, account: Option[PublicKeyOps] = None, selling: Option[Asset] = None, buying: Option[Asset] = None, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[OfferResponse]]
Fetch a stream of offers.
Fetch a stream of offers.
- sponsor
optional account of the sponsor who is paying the reserves for the offer
- account
optional account making the offer
- selling
optional asset being sold
- buying
optional asset being bought
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def offersByAccount(account: PublicKeyOps, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[OfferResponse]]
Fetch a stream of offers for an account.
Fetch a stream of offers for an account.
- account
the relevant account
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def operation(operationId: Long)(implicit ex: ExecutionContext): Future[Transacted[Operation]]
Fetch operation details by its id
Fetch operation details by its id
- See also
- def operations(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[Operation]]]
Fetch a stream of operations.
Fetch a stream of operations.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def operationsByAccount(pubKey: PublicKeyOps, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[Operation]]]
Fetch a stream of operations, filtered by account.
Fetch a stream of operations, filtered by account.
- pubKey
the relevant account
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def operationsByClaim(id: ClaimableBalanceId, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[Operation]]]
Fetch a stream of operations, filtered by claimable balance id.
Fetch a stream of operations, filtered by claimable balance id.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def operationsByLedger(ledgerId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[Operation]]]
Fetch a stream of operations, filtered by ledger id.
Fetch a stream of operations, filtered by ledger id.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def operationsByTransaction(txnHash: String, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[Operation]]]
Fetch a stream of operations, filtered by transaction hash.
Fetch a stream of operations, filtered by transaction hash.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def orderBook(selling: Asset, buying: Asset, limit: Int = 20)(implicit ex: ExecutionContext): Future[OrderBook]
Fetch details of the current orderbook for the given asset pairs.
Fetch details of the current orderbook for the given asset pairs.
- selling
the asset being offered
- buying
the asset being sought
- limit
the maximum quantity of offers to return, should the order book depth exceed this value.
- See also
- def paths(from: PublicKeyOps, to: PublicKeyOps, amount: Amount)(implicit ex: ExecutionContext): Future[Seq[PaymentPath]]
Fetch a stream of payment paths that realise a payment of the requested destination amount, from the specified account.
Fetch a stream of payment paths that realise a payment of the requested destination amount, from the specified account.
- from
the account that wishes to make the payment
- to
the recipient account
- amount
the desired payment amount
- See also
- def payments(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[PayOperation]]]
Fetch a stream of payment operations.
Fetch a stream of payment operations.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def paymentsByAccount(pubKey: PublicKeyOps, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[PayOperation]]]
Fetch a stream of payment operations filtered by account.
Fetch a stream of payment operations filtered by account.
- pubKey
the relevant account
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def paymentsByLedger(ledgerId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[PayOperation]]]
Fetch a stream of payment operations filtered by ledger id.
Fetch a stream of payment operations filtered by ledger id.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def paymentsByTransaction(txnHash: String, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Transacted[PayOperation]]]
Fetch a stream of payment operations filtered by transaction hash.
Fetch a stream of payment operations filtered by transaction hash.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def submit(txn: SignedTransaction)(implicit ec: ExecutionContext): Future[TransactionPostResponse]
Submit the SignedTransaction to the network and eventually receive a TransactionPostResp with the results.
Submit the SignedTransaction to the network and eventually receive a TransactionPostResp with the results.
- See also
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tradeAggregations(start: Instant, end: Instant, resolution: Resolution, offsetHours: Int, base: Asset, counter: Asset, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[TradeAggregation]]
Fetch trade history aggregations in a time period, for a given resolution and asset pair.
Fetch trade history aggregations in a time period, for a given resolution and asset pair.
- start
the start of the time period
- end
the end of the time period
- resolution
the resolution for reporting trading activity
- offsetHours
an offset to apply to the start of aggregated periods, between 0-23.
- base
the base asset
- counter
the counter/quote asset
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def trades(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Trade]]
Fetch a stream of trades
Fetch a stream of trades
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def tradesByOfferId(offerId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Trade]]
Fetch a stream of trades filtered by offer id
Fetch a stream of trades filtered by offer id
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def tradesByOrderBook(base: Asset, counter: Asset, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[Trade]]
Fetch a stream of trades filtered by orderbook
Fetch a stream of trades filtered by orderbook
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def transaction(transactionId: String)(implicit ex: ExecutionContext): Future[TransactionHistory]
Fetch information on a single transaction.
- def transactions(cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[TransactionHistory]]
Fetch a stream of historical transactions from the cursor.
Fetch a stream of historical transactions from the cursor.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def transactionsByAccount(pubKey: PublicKeyOps, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[TransactionHistory]]
Fetch a stream of transactions affecting a given account.
Fetch a stream of transactions affecting a given account.
- pubKey
the relevant account
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def transactionsByClaim(id: ClaimableBalanceId, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[TransactionHistory]]
Fetch a stream of transactions, filtered by claimable balance id.
Fetch a stream of transactions, filtered by claimable balance id.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- def transactionsByLedger(sequenceId: Long, cursor: HorizonCursor = Record(0), order: HorizonOrder = Asc)(implicit ex: ExecutionContext): Future[LazyList[TransactionHistory]]
Fetch a stream of transactions for a given ledger.
Fetch a stream of transactions for a given ledger.
- cursor
optional record id to start results from (defaults to
0
)- order
optional order to sort results by (defaults to
Asc
)
- See also
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated