post https://api.infstones.com/polygon/mainnet/
Parameters
transaction
- The transaction object
Object Name | Required | Type | Detail |
---|---|---|---|
from | ❌ | String | Address the transaction is sent from. |
to | ✅ | String | Address the transaction is directed to. |
gasPrice | ❌ | Integer | A hex code of an integer that represents the price used for each paid gas. |
value | ❌ | Integer | A hex code of an integer that represents the value sent with this transaction. |
data | ❌ | String | Hash of the method signature and encoded parameters |
blockNumberOrTag
- Either the hex value of a block number OR One of the following block tags
Object Name | Required | Type | Detail |
---|---|---|---|
blockNumberOrTag | ❌ | String | • pending - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.• latest - The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions.• earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created. |
"params": [
{
"from": "0x00000000219ab540356cBB839Cbe05303d7705Fa",
"data": "0x608060806080608155"
},
"pending"
]
Result
The transaction hash, or the zero hash if the transaction is not yet available.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"method": "eth_createAccessList",
"params": [
{
"from": "0x00000000219ab540356cBB839Cbe05303d7705Fa",
"data": "0x608060806080608155"
},
"pending"
],
"id": 1,
"jsonrpc": "2.0"
}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"accessList": [
{
"address": "0xa86a83d1122ae2a9b5f5080236b08abceb713cbe",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000081"
]
}
],
"gasUsed": "0x12e92"
}
}