-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Labels
Description
The TransactionResposne has a toJSON function we can call to make tx
responses much smaller. Currently, they look like this where you can see all of
the function fields.
getRpcRequest: [Function: getRpcRequest],
getRpcError: [Function: getRpcError],
getSigner: [AsyncFunction: getSigner],
listAccounts: [AsyncFunction: listAccounts],
destroy: [Function: destroy],
provider: [Getter],
plugins: [Getter],
attachPlugin: [Function: attachPlugin],
getPlugin: [Function: getPlugin],
disableCcipRead: [Getter/Setter],
ccipReadFetch: [AsyncFunction: ccipReadFetch],
_wrapBlock: [Function: _wrapBlock],
_wrapLog: [Function: _wrapLog],
_wrapTransactionReceipt: [Function: _wrapTransactionReceipt],
_wrapTransactionResponse: [Function: _wrapTransactionResponse],
getBlockNumber: [AsyncFunction: getBlockNumber],
_getAddress: [Function: _getAddress],
_getBlockTag: [Function: _getBlockTag],
_getFilter: [Function: _getFilter],
_getTransactionRequest: [Function: _getTransactionRequest],
getNetwork: [AsyncFunction: getNetwork],
getFeeData: [AsyncFunction: getFeeData],
estimateGas: [AsyncFunction: estimateGas],
call: [AsyncFunction: call],
getBalance: [AsyncFunction: getBalance],
getTransactionCount: [AsyncFunction: getTransactionCount],
getCode: [AsyncFunction: getCode],
getStorage: [AsyncFunction: getStorage],
broadcastTransaction: [AsyncFunction: broadcastTransaction],
getBlock: [AsyncFunction: getBlock],
getTransaction: [AsyncFunction: getTransaction],
getTransactionReceipt: [AsyncFunction: getTransactionReceipt],
getTransactionResult: [AsyncFunction: getTransactionResult],
getLogs: [AsyncFunction: getLogs],
_getProvider: [Function: _getProvider],
getResolver: [AsyncFunction: getResolver],
getAvatar: [AsyncFunction: getAvatar],
resolveName: [AsyncFunction: resolveName],
lookupAddress: [AsyncFunction: lookupAddress],
waitForTransaction: [AsyncFunction: waitForTransaction],
waitForBlock: [AsyncFunction: waitForBlock],
_clearTimeout: [Function: _clearTimeout],
_setTimeout: [Function: _setTimeout],
_forEachSubscriber: [Function: _forEachSubscriber],
_recoverSubscriber: [Function: _recoverSubscriber],
on: [AsyncFunction: on],
once: [AsyncFunction: once],
emit: [AsyncFunction: emit],
listenerCount: [AsyncFunction: listenerCount],
listeners: [AsyncFunction: listeners],
off: [AsyncFunction: off],
removeAllListeners: [AsyncFunction: removeAllListeners],
addListener: [AsyncFunction: addListener],
removeListener: [AsyncFunction: removeListener],
destroyed: [Getter],
paused: [Getter/Setter],
pause: [Function: pause],
resume: [Function: resume],
},
blockNumber: null,
blockHash: null,
index: undefined,
hash: "0xdd70be658cf3381e311d8fdbd5521782606f66de5dceb142d9b8d4e21978b7d7",
type: 2,
to: "0x5a6DDAE0Fa74b37065547b10e7174a475aC0eea5",
from: "0xC0f4b45712670cf7865A14816bE9Af9091EDdA1d",
nonce: 40,
gasLimit: 100000n,
gasPrice: undefined,
maxPriorityFeePerGas: 0n,
maxFeePerGas: 2000000000000n,
maxFeePerBlobGas: null,
data: "0x",
value: 5000000000000000000n,
chainId: 6930n,
signature: Signature { r: "0xdf1d2fd150cbecfa2b0b67c18d28fe8c3bbf11bad200a3b1d2765dcb80669e75", s: "0x77690d353c72494f24c8c85c133744b1a48ae43f701ee84e6d5f899a8c2c5af3", yParity: 0, networkV: null },
accessList: [],
blobVersionedHashes: null,
toJSON: [Function: toJSON],
getBlock: [AsyncFunction: getBlock],
getTransaction: [AsyncFunction: getTransaction],
confirmations: [AsyncFunction: confirmations],
wait: [AsyncFunction: wait],
isMined: [Function: isMined],
isLegacy: [Function: isLegacy],
isBerlin: [Function: isBerlin],
isLondon: [Function: isLondon],
isCancun: [Function: isCancun],
removedEvent: [Function: removedEvent],
reorderedEvent: [Function: reorderedEvent],
replaceableTransaction: [Function: replaceableTransaction],
},
}:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
⚡ Building 🧱