FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST invokecontractverify
Method not allowed
调用合同方法验证。
与通过应用程序触发器执行合同的方法InvokeFunction不同,InvokeContractVerify通过验证触发器执行合同,并可以将参数作为参数和签名者传递。
特定的参数类型和数字取决于智能合约来调用。
此方法用于测试您的VM脚本,就好像它们在那个时间点上运行在区块链上一样。 此RPC调用不会以任何方式影响区块链。
scripthash
- 细绳
智能合同的记录。
params
- 细绳
要传递给智能合约操作的参数。 它必须是一个空数组[],因为默认情况下,NEO仅接受无参数的验证函数。
signers
- 细绳
选修的。 合同签名帐户清单。
- 帐户:签名帐户
- 范围:签名有效范围,允许的值:feeOnly,naterbyentry,contustracts,customgroups,global
- 允许合同:签名合同可以生效,如果范围是自定义合同
- 允许组:签名的Pubkeys可以生效,如果示波器是customgroups
您需要使用根据其数据类型传递的地址的正确字节顺序。 如果数据类型为Hash160,请使用Big Endian脚本哈希; 如果数据类型是bytearray,请使用Little Endian Scripthash。
curl --location --request POST 'https://neo.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "invokecontractverify", "params": [null, null, null], "id": "getblock.io"}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }