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

Method encode_dydx_tx_raw

python/ccxt/base/exchange.py:2250–2258  ·  view source on GitHub ↗
(self, signDoc, signature)

Source from the content-addressed store, hash-verified

2248 return [signingHash, signDoc]
2249
2250 def encode_dydx_tx_raw(self, signDoc, signature):
2251 if not encode_as_any:
2252 raise NotSupported(self.id + ' requires protobuf to encode messages, please install it with `pip install "protobuf==5.29.5"`')
2253 tx = TxRaw(
2254 auth_info_bytes=signDoc.auth_info_bytes,
2255 body_bytes=signDoc.body_bytes,
2256 signatures=[self.base16ToBinary(signature)],
2257 )
2258 return '0x' + self.binary_to_base16(tx.SerializeToString())
2259
2260 def lock_id(self):
2261 return None

Callers 2

sign_dydx_txMethod · 0.80
sign_dydx_txMethod · 0.80

Calls 4

base16ToBinaryMethod · 0.95
binary_to_base16Method · 0.95
NotSupportedClass · 0.90
TxRawInterface · 0.50

Tested by

no test coverage detected