📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

Method: POST personal_signTransaction

dropdown

方法 GETH RPC personal_signTransaction 例如 Ethereum (ETH)

POST personal_signTransaction

Method not allowed

SignTransaction将创建从给定参数的事务,并试图与与TX.From关联的密钥签名。 如果给定的PassWD无法解密其失败的密钥。 交易以RLP形式返回,而不是广播到其他节点。 第一个参数是事务对象,第二个参数是密码,类似于personal_sendtransaction。

Parameters

tx - 细绳

没有任何

passphrase - 细绳

没有任何

Request

curl --location --request POST 'https://geth.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "personal_signTransaction",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}