Skip to content

Commit

Permalink
Update RPC api Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Jul 27, 2023
1 parent a4cfd1c commit 51a6f56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpcv02/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ type api interface {
TransactionByBlockIdAndIndex(ctx context.Context, blockID BlockID, index uint64) (Transaction, error)
TransactionByHash(ctx context.Context, hash *felt.Felt) (Transaction, error)
TransactionReceipt(ctx context.Context, transactionHash *felt.Felt) (TransactionReceipt, error)
AddInvokeTransaction(ctx context.Context, broadcastedInvoke BroadcastedInvokeTransaction) (*AddInvokeTransactionResponse, error)
AddDeclareTransaction(ctx context.Context, declareTransaction BroadcastedDeclareTransaction) (*AddDeclareTransactionResponse, error)
AddDeployAccountTransaction(ctx context.Context, deployAccountTransaction BroadcastedDeployAccountTransaction) (*AddDeployTransactionResponse, error)
}

var _ api = &Provider{}

0 comments on commit 51a6f56

Please sign in to comment.