MCPcopy Create free account
hub / github.com/CPChain/chain / newRPCPendingTransaction

Function newRPCPendingTransaction

internal/cpcapi/api.go:1056–1058  ·  view source on GitHub ↗

newRPCPendingTransaction returns a pending transaction that will serialize to the RPC representation

(tx *types.Transaction)

Source from the content-addressed store, hash-verified

1054
1055// newRPCPendingTransaction returns a pending transaction that will serialize to the RPC representation
1056func newRPCPendingTransaction(tx *types.Transaction) *RPCTransaction {
1057 return newRPCTransaction(tx, common.Hash{}, 0, 0)
1058}
1059
1060// newRPCTransactionFromBlockIndex returns a transaction that will serialize to the RPC representation.
1061func newRPCTransactionFromBlockIndex(b *types.Block, index uint64) *RPCTransaction {

Callers 3

ContentMethod · 0.85
GetTransactionByHashMethod · 0.85
PendingTransactionsMethod · 0.85

Calls 1

newRPCTransactionFunction · 0.85

Tested by

no test coverage detected