Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Latest commit

 

History

History
609 lines (391 loc) · 11.7 KB

api-documentation.md

File metadata and controls

609 lines (391 loc) · 11.7 KB
id title
api-documentation
API Documentation

API Documentation

Client.Client.Api.Endpoints.Blocks.Blocks

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Blocks.

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

get()

public func get(id: String, completionHandler: @escaping ([String: Any]?)

Retrieve a Block

Parameters

Type Name Required Description
String id Yes Block ID
String completionHandler No Query parameters

Return Value

Void

transactions()

public func transactions(ofBlock id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Transactions of a Block

Parameters

Type Name Required Description
String id Yes Block ID
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

search()

public func search(body: [String: Any]?, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

Search All Blocks

Parameters

Type Name Required Description
String body Yes Search parameters
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

Client.Client.Api.Endpoints.Delegates.Delegates

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Delegates

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

get()

public func get(byName id: String, completionHandler: @escaping ([String: Any]?)

Retrieve a Delegate

Parameters

Type Name Required Description
String id Yes id can be one of: Username, Address or Public Key
String completionHandler No Query parameters

Return Value

Void

blocks()

public func blocks(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Blocks of a Delegate

Parameters

Type Name Required Description
String id Yes id can be one of: Username, Address or Public Key
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

voters()

public func voters(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Voters of a Delegate

Parameters

Type Name Required Description
String id Yes id can be one of: Username, Address or Public Key
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

<class Void>

Client.Client.Api.Endpoints.Node.Node

configuration()

public func configuration(completionHandler: @escaping ([String: Any]?)

Retrieve the Configuration

Return Value

Void

status()

public func status(completionHandler: @escaping ([String: Any]?)

Retrieve the Status

Return Value

Void

syncing()

public func syncing(completionHandler: @escaping ([String: Any]?)

Retrieve the Syncing Status

Return Value

Void

fees()

public func fees(completionHandler: @escaping ([String: Any]?)

Retrieve the Fees

Return Value

Void

Client.Client.Api.Endpoints.Peers.Peers

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Peers

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

status()

public func status(ip: String, completionHandler: @escaping ([String: Any]?)

Retrive a Peer

Parameters

Type Name Required Description
String ip Yes IP address
String completionHandler No Query parameters

Return Value

Void

Client.Client.Api.Endpoints.Transactions.Transactions

create()

public func create(body: [String: Any]?, completionHandler: @escaping ([String: Any]?)

Create a Transaction

Parameters

Type Name Required Description
String body Yes Search parameters
String completionHandler No Query parameters

Return Value

Void

get()

public func get(id: String, completionHandler: @escaping ([String: Any]?)

Retrieve a Transaction

Parameters

Type Name Required Description
String id Yes Transaction ID
String completionHandler No Query parameters

Return Value

Void

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Transactions

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

allUnconfirmed()

public func allUnconfirmed(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Unconfirmed Transactions

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

getUnconfirmed()

public func getUnconfirmed(id: String, completionHandler: @escaping ([String: Any]?)

Get Unconfirmed Transaction

Parameters

Type Name Required Description
String id Yes Transaction ID
String completionHandler No Query parameters

Return Value

Void

search()

public func search(body: [String: Any]?, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

Search Transactions

Parameters

Type Name Required Description
String body Yes Search parameters
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

types()

public func types(completionHandler: @escaping ([String: Any]?)

List Transaction Types

Parameters

Type Name Required Description
String completionHandler No Query parameters

Return Value

Void

Client.Client.Api.Endpoints.Votes.Votes

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Votes

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

get()

public func get(id: String, completionHandler: @escaping ([String: Any]?)

Retrieve a Vote

Parameters

Type Name Required Description
String id Yes Vote ID
String completionHandler No Query parameters

Return Value

Void

Client.Client.Api.Endpoints.Wallets.Wallets

all()

public func all(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

Retrieve All Wallets

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

get()

public func get(byName id: String, completionHandler: @escaping ([String: Any]?)

Retrieve a Wallet

Parameters

Type Name Required Description
String id Yes id can be one of: Username, Address or Public Key
String completionHandler No Query parameters

Return Value

Void

transactions()

public func transactions(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Transactions of a Wallet

Parameters

Type Name Required Description
String id Yes Wallet identifier
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

receivedTransactions()

public func receivedTransactions(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Received Transactions of a Wallet

Parameters

Type Name Required Description
String id Yes Wallet identifier
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

sentTransactions()

public func sentTransactions(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Sent Transactions of a Wallet

Parameters

Type Name Required Description
String id Yes Wallet identifier
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

votes()

public func votes(byName id: String, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

List All Votes of a Wallet

Parameters

Type Name Required Description
String id Yes Wallet identifier
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

top()

public func top(limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?) -> Void)

List All Top Wallets

Parameters

Type Name Required Description
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void

search()

public func search(body: [String: Any]?, limit: Int = 100, page: Int = 1, completionHandler: @escaping ([String: Any]?)

Search All Wallets

Parameters

Type Name Required Description
String body Yes Search parameters
Int limit No Limit of results
Int page No Pagination
String completionHandler No Query parameters

Return Value

Void