Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# UNS Typescript SDK
# Unikname Typescript SDK

## How to use

Please visit [SDK page](https://docs.uns.network/uns-usethenetwork/sdk.html) from UNS documentation.
Please visit [SDK page](https://docs.unikname.network/sdk.html) from UNN documentation.

## How to contribute

Expand Down
4 changes: 4 additions & 0 deletions src/clients/repositories/transactions/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const transactionsSend = (client: HTTPClient) => (
return post<IProcessorResult>(client)(`transactions`, undefined, { transactions: [transaction] });
};

export const multipleTransactionsSend = (client: HTTPClient) => (
transactions: Interfaces.ITransactionData[],
): Promise<IProcessorResult> => post<IProcessorResult>(client)(`transactions`, undefined, { transactions });

export const transactionsSearch = (client: HTTPClient) => (
body: _Body,
pagination: PaginationOptions = {},
Expand Down
3 changes: 2 additions & 1 deletion src/clients/uns-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
transferDemandCertificationCreate,
} from ".";
import { DeepPartial } from "../utils/merge";
import { roundsGetDelegates, walletTransactions } from "./repositories";
import { multipleTransactionsSend, roundsGetDelegates, walletTransactions } from "./repositories";
import { delegatesGet } from "./repositories/delegates";

export class UNSClient {
Expand Down Expand Up @@ -159,6 +159,7 @@ export class UNSClient {
send: transactionsSend(this.http),
search: transactionsSearch(this.http),
unconfirmed: transactionsUnconfirmed(this.http),
sendBatch: multipleTransactionsSend(this.http),
};
}

Expand Down