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

Method: POST personal_sendTransaction

dropdown

方法 GETH RPC personal_sendTransaction 例如 Ethereum (ETH)

POST personal_sendTransaction

Method not allowed

验证给定的密码并提交交易。

交易与eth_sendtransaction(即事务对象)的参数相同,并包含从地址。 如果可以使用密码将私有密钥覆盖到TX。从事务进行验证,签名并发送到网络上。 该帐户在节点中没有在全球范围内解锁,也不能在其他RPC调用中使用。

Parameters

tx - JSON对象

没有任何

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_sendTransaction",
"params": [null, null],
"id": "getblock.io"}'


Response

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