engine

package
v0.90.1-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package engine allows to make contract calls. It's roughly similar in function to ExecutionEngine class in the Neo .net framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppCall

func AppCall(scriptHash []byte, args ...interface{}) interface{}

AppCall executes previously deployed blockchain contract with specified hash (160 bit in BE form represented as 20-byte slice) using provided arguments. It returns whatever this contract returns. Even though this function accepts a slice for scriptHash you can only use it for contracts known at compile time, because there is a significant difference between static and dynamic calls in Neo (contracts should have a special property declared and paid for to be able to use dynamic calls). This function uses `System.Contract.Call` syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL