public class PayloadDemo extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static byte[] |
nativeInvoke |
static byte[] |
nativeInvokeNameBytes |
static String |
ongContract |
static String |
ontContract |
static String |
TRANSFER |
static String |
TRANSFER_V2 |
| 构造器和说明 |
|---|
PayloadDemo() |
| 限定符和类型 | 方法和说明 |
|---|---|
static OntSdk |
getOntSdk() |
static boolean |
isOpCode(byte by) |
static void |
main(String[] args) |
static demo.PayloadDemo.TransferInfo |
parseNativePayload(byte[] payload) |
static demo.PayloadDemo.TransferInfo |
parseOEP4Payload(byte[] code) |
static demo.PayloadDemo.TransferInfo |
parseTxPayload(Transaction tx) |
static Address |
readAddress(BinaryReader reader) |
static BigInteger |
readValue(BinaryReader reader,
int length) |
static void |
skipOpCode(BinaryReader reader,
int num) |
public static String TRANSFER
public static String TRANSFER_V2
public static String ontContract
public static String ongContract
public static byte[] nativeInvokeNameBytes
public static byte[] nativeInvoke
public static demo.PayloadDemo.TransferInfo parseTxPayload(Transaction tx) throws IOException
IOExceptionpublic static demo.PayloadDemo.TransferInfo parseNativePayload(byte[] payload)
throws IOException
IOExceptionpublic static demo.PayloadDemo.TransferInfo parseOEP4Payload(byte[] code)
throws IOException
IOExceptionpublic static void skipOpCode(BinaryReader reader, int num) throws IOException
IOExceptionpublic static BigInteger readValue(BinaryReader reader, int length) throws IOException
IOExceptionpublic static Address readAddress(BinaryReader reader) throws IOException
IOExceptionpublic static boolean isOpCode(byte by)
Copyright © 2022. All rights reserved.