debug_getRawTransaction

Returns an array of EIP-2718 binary-encoded transactions.

https://api.1inch.com/web3/143
Supported on:
Monad

Parameters

Transaction hash (required)

Transaction hash
* string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
string
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/143', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'debug_getRawTransaction',
    params: ['string'],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

EIP-2718 binary-encoded transaction

EIP-2718 binary-encoded transaction
string
JSON
1
2
"0xf8678084342770c182520894658bdf435d810c91414ec09147daa6db624063798203e880820a95a0af5fc351b9e457a31f37c84e5cd99dd3c5de60af3de33c6f4160177a2c786a60a0201da7a21046af55837330a2c52fc1543cd4d9ead00ddf178dd96935b607ff9b"

Did you find what you need?