you_getCode

描述:返回指定地址的合约代码

parameter

数据类型 备注
String, 20 字节 地址
String 整数块编号,或字符串"latest"、"earliest" 或"pending"
"params": ["0xcF9F5007AA1A9ae7b8092DBE3E12B3B97fD5b18D"]

return

数据类型 备注
String 指定地址处的代码

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "you_getCode",
    "params": ["0xcF9F5007AA1A9ae7b8092DBE3E12B3B97fD5b18D", "latest"]
}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b3146101745780630a5f7886146101ac57806318160ddd146101dd57806323b872dd14610204578063313ce5671461022e57806350aa878514610259578063661884631461026e57806370a08231146102925780638a92603a146102b35780638da5cb5b146102c857806395d89b41146102dd578063a9059cbb146102f2578063d73dd62314610316578063dd62ed3e1461033a578063f2fde38b14610361575b600080fd5b3480156100f657600080fd5b506100ff610384565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a03600435166024356103bb565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610421565b60408051600160a060020a039092168252519081900360200190f35b3480156101e957600080fd5b506101f2610439565b60408051918252519081900360200190f35b34801561021057600080fd5b50610198600160a060020a036004358116906024351660443561043f565b34801561023a57600080fd5b506102436105b8565b6040805160ff9092168252519081900360200190f35b34801561026557600080fd5b506101c16105bd565b34801561027a57600080fd5b50610198600160a060020a03600435166024356105c3565b34801561029e57600080fd5b506101f2600160a060020a03600435166106b3565b3480156102bf57600080fd5b506101c16106ce565b3480156102d457600080fd5b506101c16106d4565b3480156102e957600080fd5b506100ff6106e3565b3480156102fe57600080fd5b50610198600160a060020a036004351660243561071a565b34801561032257600080fd5b50610198600160a060020a03600435166024356107fd565b34801561034657600080fd5b506101f2600160a060020a0360043581169060243516610896565b34801561036d57600080fd5b50610382600160a060020a03600435166108c1565b005b60408051808201909152600981527f594f5532436861696e0000000000000000000000000000000000000000000000602082015281565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b7359677fd68ec54e43ad4319d915f81748b5a6ff8b81565b60005481565b6000600160a060020a038316151561045657600080fd5b600160a060020a03841660009081526001602052604090205482111561047b57600080fd5b600160a060020a03841660009081526002602090815260408083203384529091529020548211156104ab57600080fd5b600160a060020a0384166000908152600160205260409020546104d4908363ffffffff61095616565b600160a060020a038086166000908152600160205260408082209390935590851681522054610509908363ffffffff61096816565b600160a060020a03808516600090815260016020908152604080832094909455918716815260028252828120338252909152205461054d908363ffffffff61095616565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600a81565b61100281565b336000908152600260209081526040808320600160a060020a03861684529091528120548083111561061857336000908152600260209081526040808320600160a060020a038816845290915281205561064d565b610628818463ffffffff61095616565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526001602052604090205490565b61100181565b600354600160a060020a031681565b60408051808201909152600481527f594f553200000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561073157600080fd5b3360009081526001602052604090205482111561074d57600080fd5b3360009081526001602052604090205461076d908363ffffffff61095616565b3360009081526001602052604080822092909255600160a060020a0385168152205461079f908363ffffffff61096816565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b336000908152600260209081526040808320600160a060020a0386168452909152812054610831908363ffffffff61096816565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600354600160a060020a031633146108d857600080fd5b600160a060020a03811615156108ed57600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561096257fe5b50900390565b60008282018381101561097757fe5b93925050505600a165627a7a723058201ed6ed2d461db10adf310e978f921d1c09b070a5404fed7884343bb1baf482100029"
}