-
Notifications
You must be signed in to change notification settings - Fork 6
Node Service
Vladimir edited this page Jul 23, 2019
·
9 revisions
This is the main SDK part and the most important service for Waves platform integration allowing you to work directly with the node features.
Please notice that the full list of node methods is available at Node Service Swagger and Test Node Service Swagger.
- broadcast() – sends transaction request, that contains transaction body with a type (like Transfer, Data, Invoke, etc.)
/**
Broadcast transaction one of type = [0; 16]
*/
public func broadcast(query: NodeService.Query.Broadcast) -> Observable<NodeService.DTO.Transaction> {
- transactionsAddress()
/**
Get list of transactions where specified address has been involved
- Parameter: address Address
- Parameter: limit Number of transactions to be returned. Max is last 1000.
*/
public func list(address: String, offset: Int, limit: Int) -> Observable<NodeService.DTO.TransactionContainers> {
- addressBalance()
/**
Account's Waves balance
- Parameter: address Address
*/
public func addressBalance(address: String) -> Observable<NodeService.DTO.AddressBalance> {
- scriptInfo()
/**
Account's script additional info
- Parameter: address Address
*/
public func scriptInfo(address: String) -> Observable<NodeService.DTO.AddressScriptInfo> {
- assetsBalances()
/**
Account's balances for all assets by address
- Parameter: address Address
*/
public func assetsBalances(address: String) -> Observable<NodeService.DTO.AddressAssetsBalance> {
- addressBalance()
/**
Account's balances for all assets by address
- Parameter: address Address
*/
public func addressBalance(address: String) -> Observable<NodeService.DTO.AddressBalance> {
- assetDetails()
/**
* Provides detailed information about given asset
* @param assetId Asset Id
*/
@GET("/assets/details/{assetId}")
fun assetDetails(@Path("assetId") assetId: String): Observable<AssetsDetailsResponse>
- height()
/**
Get current Waves block-chain height
- Parameter: address Address of account
*/
public func height(address: String) -> Observable<NodeService.DTO.Block> {
- leasingActive()
/**
Active leasing transactions of account
address Address
*/
public func leasingActive(by address: String) -> Observable<[NodeService.DTO.LeaseTransaction]> {
- utilsTime()
/**
Current Node time (UTC)
*/
public func time() -> Observable<NodeService.DTO.Utils.Time> {