MCPcopy Create free account
hub / github.com/ccxt/ccxt / ethEncodeStructuredData

Method ethEncodeStructuredData

ts/src/base/Exchange.ts:1608–1610  ·  view source on GitHub ↗
(domain, messageTypes, messageData)

Source from the content-addressed store, hash-verified

1606 }
1607
1608 ethEncodeStructuredData (domain, messageTypes, messageData) {
1609 return this.base16ToBinary (TypedDataEncoder.encode (domain, messageTypes, messageData).slice (-132));
1610 }
1611
1612 ethGetAddressFromPrivateKey (privateKey: string): string {
1613 // Accepts a "0x"-prefixed hexstring private key and returns the corresponding Ethereum address

Callers 9

withdrawMethod · 0.45
retrieveAccountMethod · 0.45
withdrawMethod · 0.45
createSignedRequestMethod · 0.45
signWithdrawPayloadMethod · 0.45
signMethod · 0.45
signL1ActionMethod · 0.45
signUserSignedActionMethod · 0.45
signOnboardingActionMethod · 0.45

Calls 3

base16ToBinaryMethod · 0.95
sliceMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected