Skip to content

Commit

Permalink
feat(rpc): added reason to txStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Sep 25, 2023
1 parent fe6c0e5 commit 02d881d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/base/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ export interface Transaction {
witnesses: HexString[];
}

type Status = "pending" | "proposed" | "committed" | "unknown" | "rejected";

export interface TxStatus {
status: Status;
blockHash?: Hash;
status: string;
reason?: string;
}

export interface TransactionWithStatus<Tx = Transaction> {
Expand Down

0 comments on commit 02d881d

Please sign in to comment.