// postArgumentsToApp creates and publishes a No-Op transaction with given arguments
// to the application. A note is also added to the transaction. The note determines
// how the Arguments of the No-Op call get interpreted. You can distill note options
// from the approval.teal contract.
postArgumentsToApp creates and publishes a No-Op transaction with given arguments
to the application. A note is also added to the transaction. The note determines
how the Arguments of the No-Op call get interpreted. You can distill note options
from the approval.teal contract.
// postArgumentsToApp creates and publishes a No - Op transaction with given arguments // to the application . A note is also added to the transaction . The note determines // how the Arguments of the No - Op call get interpreted . You can distill note options // from the approval . teal contract .
func (a *AlgorandClientWrapper) postArgumentsToApp(acc crypto.Account, appId uint64, note string, args [][]byte) error {
	ctx, cancel := context.WithTimeout(context.Background(), AlgorandDefaultTimeout)
	params, err := a.SuggestedParams(ctx)
	cancel()
	if err != nil {
		return fmt.Errorf("error getting suggested tx params: %s", err)
	}
	txn, _ := future.MakeApplicationNoOpTx(appId, args,
		nil, nil, nil, params, acc.Address, []byte(note), types.Digest{}, [32]byte{}, types.Address{})
	ctx, cancel = context.WithTimeout(context.Background(), AlgorandDefaultTimeout)
	_, err = a.ExecuteTransaction(acc, txn, ctx)
	cancel()
	return err
}
func ( a * AlgorandClientWrapper ) postArgumentsToApp ( acc crypto . Account , appId uint64 , note string , args [ ] [ ] byte ) error { ctx , cancel := context . WithTimeout ( context . Background ( ) , AlgorandDefaultTimeout ) params , err := a . SuggestedParams ( ctx ) cancel ( ) if err != nil { return fmt . Errorf ( " " , err ) } txn , _ := future . MakeApplicationNoOpTx ( appId , args , nil , nil , nil , params , acc . Address , [ ] byte ( note ) , types . Digest { } , [ 32 ] byte { } , types . Address { } ) ctx , cancel = context . WithTimeout ( context . Background ( ) , AlgorandDefaultTimeout ) _ , err = a . ExecuteTransaction ( acc , txn , ctx ) cancel ( ) return err }
postArgumentsToApp creates and publishes a No-Op transaction with given arguments
to the application.
postArgumentsToApp creates and publishes a No - Op transaction with given arguments to the application .