Neo3 的 OpCode 转换工具,可以将交易中的 Script 转换为易读易懂的 OpCode,支持交易的 script 字段,或者 witness.invocation、witnesses.verification 字段。
输入为 Base64 编码的 script,输出为 List<string> 格式的 OpCode 列表。
input:
DECKiNs7nm9rKamTRSQpjuRHmmKZlX0n1m89FfDzOvgcQIe7JfMnsg/4Ss1yHVwTxpmDjs1GWRcRyntZ06S81fIF
output:
PUSHDATA1 3981b0c025773b2377ab63d303071405d1e5f7e8baefba430d839107569a9b26f1b5108f98467a3aa7c60d4cb244a58065fcd8169e420eb9e38ff39991575b23
input:
EQwhA9q4TBJD7AGrJQDhqMehVGom1zRigYCwz2TnK/d2U2mXEQtBE43vrw==
output:
SYSCALL Neo.Crypto.CheckMultisigWithECDsaSecp256r1
PUSHDATA1 03dab84c1243ec01ab2500e1a8c7a1546a26d734628180b0cf64e72bf776536997
input:
EQwUvQMah0TTRtYWcYFgFy9jaOAX3AUMFL0DGodE00bWFnGBYBcvY2jgF9wFE8AMCHRyYW5zZmVyDBQlBZ7LSHjTqHX5HFHO3tMw1Fdf3kFifVtSOA==
output:
SYSCALL System.Contract.Call
PUSHDATA1 0xde5f57d430d3dece511cf975a8d37848cb9e0525
PUSHDATA1 transfer
PUSHDATA1 0x05dc17e068632f1760817116d646d344871a03bd
PUSHDATA1 0x05dc17e068632f1760817116d646d344871a03bd
input:
AGQMFL0DGodE00bWFnGBYBcvY2jgF9wFDBS9AxqHRNNG1hZxgWAXL2No4BfcBRPADAh0cmFuc2ZlcgwUJQWey0h406h1+RxRzt7TMNRXX95BYn1bUjg=
output:
SYSCALL System.Contract.Call
PUSHDATA1 0xde5f57d430d3dece511cf975a8d37848cb9e0525
PUSHDATA1 transfer
PUSHDATA1 0x05dc17e068632f1760817116d646d344871a03bd
PUSHDATA1 0x05dc17e068632f1760817116d646d344871a03bd
PUSHINT8 100
input:
AwDkC1QCAAAADBS9AxqHRNNG1hZxgWAXL2No4BfcBQwUgUkpDXgVmkkrRX4lahSzu86gNiATwAwIdHJhbnNmZXIMFLyvQdaEx9StbuDZnalwe50fDI5mQWJ9W1I4
output:
SYSCALL System.Contract.Call
PUSHDATA1 0x668e0c1f9d7b70a99dd9e06eadd4c784d641afbc
PUSHDATA1 transfer
PUSHDATA1 0x2036a0cebbb3146a257e452b499a15780d294981
PUSHDATA1 0x05dc17e068632f1760817116d646d344871a03bd
PUSHINT64 10000000000
NEP-5 的 ScriptHash 为 0x230cf5ef1e1bd411c7733fa92bb6f9c39714f8f9
input:
AwDyBSoBAAAADBTUzRIZzo4XK1AnOCPXmaNl+raw5AwU1M0SGc6OFytQJzgj15mjZfq2sOQTwAwIdHJhbnNmZXIMFPn4FJfD+bYrqT9zxxHUGx7v9QwjQWJ9W1I5
output:
SYSCALL System.Contract.Call
PUSHDATA1 0x230cf5ef1e1bd411c7733fa92bb6f9c39714f8f9
PUSHDATA1 transfer
PUSHDATA1 0xe4b0b6fa65a399d7233827502b178ece1912cdd4
PUSHDATA1 0xe4b0b6fa65a399d7233827502b178ece1912cdd
PUSHINT64 5000000000
NEP-5 的 ScriptHash 为 0x230cf5ef1e1bd411c7733fa92bb6f9c39714f8f9
input:
EMAMBG5hbWUMFPn4FJfD+bYrqT9zxxHUGx7v9QwjQWJ9W1I=
output:
SYSCALL System.Contract.Call
PUSHDATA1 0x230cf5ef1e1bd411c7733fa92bb6f9c39714f8f9
PUSHDATA1 name
input:
DW0BeyJncm91cHMiOltdLCJmZWF0dXJlcyI6eyJzdG9yYWdlIjp0cnVlLCJwYXlhYmxlIjpmYWxzZX0sImFiaSI6eyJoYXNoIjoiMHgxMzhhN2M0NTNlZTRhNDk1NzJhNDUzOTAxNDE1ZGNhNThmYTQ5MGRjIiwiZW50cnlQb2ludCI6eyJuYW1lIjoibWFpbiIsInBhcmFtZXRlcnMiOlt7Im5hbWUiOiJtZXRob2QiLCJ0eXBlIjoiU3RyaW5nIn0seyJuYW1lIjoiYXJncyIsInR5cGUiOiJBcnJheSJ9XSwicmV0dXJuVHlwZSI6IkJ5dGVBcnJheSJ9LCJtZXRob2RzIjpbXSwiZXZlbnRzIjpbXX0sInBlcm1pc3Npb25zIjpbeyJjb250cmFjdCI6IioiLCJtZXRob2RzIjoiKiJ9XSwidHJ1c3RzIjpbXSwic2FmZU1ldGhvZHMiOltdLCJleHRyYSI6bnVsbH0MCVcBAhFwIgJoQEHONSyF
output:
SYSCALL System.Contract.Create
PUSHDATA1 570102117022026840
PUSHDATA2 7b2267726f757073223a5b5d2c226665617475726573223a7b2273746f72616765223a747275652c2270617961626c65223a66616c73657d2c22616269223a7b2268617368223a22307831333861376334353365653461343935373261343533393031343135646361353866613439306463222c22656e747279506f696e74223a7b226e616d65223a226d61696e222c22706172616d6574657273223a5b7b226e616d65223a226d6574686f64222c2274797065223a22537472696e67227d2c7b226e616d65223a2261726773222c2274797065223a224172726179227d5d2c2272657475726e54797065223a22427974654172726179227d2c226d6574686f6473223a5b5d2c226576656e7473223a5b5d7d2c227065726d697373696f6e73223a5b7b22636f6e7472616374223a222a222c226d6574686f6473223a222a227d5d2c22747275737473223a5b5d2c22736166654d6574686f6473223a5b5d2c226578747261223a6e756c6c7d