Skip to content

Commit

Permalink
add transaction methods to client interface
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesKimara committed Sep 28, 2021
1 parent c9bf9e6 commit 39af086
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client.go
Expand Up @@ -95,4 +95,16 @@ type APIClient interface {
PoolDelegators(ctx context.Context, poolID string, query APIPagingParams) ([]PoolDelegator, error)
PoolBlocks(ctx context.Context, poolID string, query APIPagingParams) (PoolBlocks, error)
PoolUpdate(ctx context.Context, poolID string, query APIPagingParams) ([]PoolUpdate, error)
Transaction(ctx context.Context, hash string) (TransactionContent, error)
TransactionUTXOs(ctx context.Context, hash string) (TransactionUTXOs, error)
TransactionStakeAddressCerts(ctx context.Context, hash string) ([]TransactionStakeAddressCert, error)
TransactionWithdrawals(ctx context.Context, hash string) ([]TransactionWidthrawal, error)
TransactionMIRs(ctx context.Context, hash string) ([]TransactionMIR, error)
TransactionMetadata(ctx context.Context, hash string) ([]TransactionMetadata, error)
TransactionMetadataInCBORs(ctx context.Context, hash string) ([]TransactionMetadataCbor, error)
TransactionRedeemers(ctx context.Context, hash string) ([]TransactionMetadata, error)
TransactionDelegationCerts(ctx context.Context, hash string) ([]TransactionDelegation, error)
TransactionPoolUpdates(ctx context.Context, hash string) ([]TransactionPoolCert, error)
TransactionPoolUpdateCerts(ctx context.Context, hash string) ([]TransactionPoolCert, error)
TransactionPoolRetirementCerts(ctx context.Context, hash string) ([]TransactionPoolCert, error)
}

0 comments on commit 39af086

Please sign in to comment.