Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accountToUtxos rpc #289

Merged
merged 12 commits into from
Jun 3, 2021
Prev Previous commit
Next Next commit
Rearrange rpc section
  • Loading branch information
jingyi2811 committed Jun 1, 2021
commit 55fc677748e60995ca33fab33995d01481e9baca
80 changes: 40 additions & 40 deletions website/docs/jellyfish/api/account.md
Original file line number Diff line number Diff line change
@@ -106,46 +106,6 @@ interface GetTokenBalancesOptions {
}
```

## listAccountHistory

Returns information about account history

```ts title="client.account.listAccountHistory()"
interface account {
listAccountHistory (
owner: OwnerType | string = OwnerType.MINE,
options: AccountHistoryOptions = {
limit: 100
}
): Promise<AccountHistory[]>
}

enum OwnerType {
MINE = "mine",
ALL = "all"
}

interface AccountHistory {
owner: string
blockHeight: number
blockHash: string
blockTime: number
type: string
txn: number
txid: string
amounts: string[]
}

interface AccountHistoryOptions {
maxBlockHeight?: number
depth?: number
no_rewards?: boolean
token?: string
txtype?: string
limit?: number
}
```

## utxosToAccount

Create an UTXOs to Account transaction submitted to a connected node.
@@ -220,6 +180,46 @@ interface UTXO {
}
```

## listAccountHistory

Returns information about account history

```ts title="client.account.listAccountHistory()"
interface account {
listAccountHistory (
owner: OwnerType | string = OwnerType.MINE,
options: AccountHistoryOptions = {
limit: 100
}
): Promise<AccountHistory[]>
}

enum OwnerType {
MINE = "mine",
ALL = "all"
}

interface AccountHistory {
owner: string
blockHeight: number
blockHash: string
blockTime: number
type: string
txn: number
txid: string
amounts: string[]
}

interface AccountHistoryOptions {
maxBlockHeight?: number
depth?: number
no_rewards?: boolean
token?: string
txtype?: string
limit?: number
}
```

## historyCount

Returns count of account history