Show / Hide Table of Contents
Last modified: 2024-05-20

name Method

Returns contract name.

Contract

NativeContract

Example

Request content:

var result = Contract.Call(nativeHash, "name", new object[] { });

Respond content:

{
    "Type":"ByteString",
    "value":"NEO"
}

Respond description:

  • ByteString type: contract name is successfully requested.

  • Others: failed.