Skip to main content

Parameters

chainId
string
default:"14"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_sendTransaction"
required
JSON-RPC method name.
params
object
required
Parameters for eth_sendTransaction: [transactionObject]Positional parameters for eth_sendTransaction:
  • params[]: Legacy transaction (pre-EIP-2718).

Returns

result
string
32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available. Example: “0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=14 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_sendTransaction",
    "params": [
      {
        "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
        "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
        "gas": "0x76c0",
        "gasPrice": "0x9184e72a000",
        "value": "0x9184e72a",
        "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09"
}