Skip to content

Commit

Permalink
SimulateRawTransactionWithOpts (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricebin committed Mar 17, 2023
1 parent df820cc commit 2e66861
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpc/simulateTransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ func (cl *Client) SimulateTransactionWithOpts(
if err != nil {
return nil, fmt.Errorf("send transaction: encode transaction: %w", err)
}
return cl.SimulateRawTransactionWithOpts(ctx, txData, opts)
}

func (cl *Client) SimulateRawTransactionWithOpts(
ctx context.Context,
txData []byte,
opts *SimulateTransactionOpts,
) (out *SimulateTransactionResponse, err error) {
obj := M{
"encoding": "base64",
}
Expand Down

0 comments on commit 2e66861

Please sign in to comment.