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

Method SendTx

protocols/cpc/api_backend.go:175–177  ·  view source on GitHub ↗
(ctx context.Context, signedTx *types.Transaction)

Source from the content-addressed store, hash-verified

173}
174
175func (b *APIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error {
176 return b.cpc.txPool.AddLocal(signedTx)
177}
178
179func (b *APIBackend) GetPoolTransactions() (types.Transactions, error) {
180 pending, err := b.cpc.txPool.Pending()

Callers

nothing calls this directly

Calls 1

AddLocalMethod · 0.80

Tested by

no test coverage detected