Skip to content
docs

CowRpc

Defined in: protocol-swap2-cow/src/rpc.ts:8

call(chainId, to, data): Promise<string>

Defined in: protocol-swap2-cow/src/rpc.ts:14

eth_call at the latest block; the returned bytes (hex).

number

string

string

Promise<string>


has(chainId): boolean

Defined in: protocol-swap2-cow/src/rpc.ts:10

True when at least one endpoint is configured for the chain.

number

boolean


request(chainId, method, params): Promise<unknown>

Defined in: protocol-swap2-cow/src/rpc.ts:12

One JSON-RPC call; an error the node answered carries rpc: true (and data), “no endpoint answered” does not.

number

string

unknown[]

Promise<unknown>