UnsignedRawMessage

data class UnsignedRawMessage(val content: String, val bip44AddressIndex: Int? = null, val bip44change: Int? = null, val derivationPath: List<Long>? = null, val type: String? = null, val preHash: PreHash? = null)

The bip44AddressIndex and bip44change fields complement the derivation path given the source id and asset were provided in the transaction body request. In case none of the above was provided, please specify the derivation path.

Parameters

content

Content to sign on. Should be 32 bytes long for ECDSA (hash of the actual message to sign) or any length for EdDSA as prehashing is not required.

bip44AddressIndex

(optional) BIP44 address_index path level

bip44change

(optional) BIP44 change path level

derivationPath

(optional) Should be passed only if asset and source were not specified. Note: for Testnet assets, coin_type is always '1'.

type

(Optional) Should be passed only if operation is GetTransactionOperation.TYPED_MESSAGE. Possible values are:

  • EIP191: for ETH/EVM personal messages

  • EIP712: For ETH/EVM typed messages

  • TIP191: For TRX personal messages

  • BTC_MESSAGE: For BTC personal messages

preHash

An object to send when creating ECDSA Raw signing requests.

Constructors

Link copied to clipboard
constructor(content: String, bip44AddressIndex: Int? = null, bip44change: Int? = null, derivationPath: List<Long>? = null, type: String? = null, preHash: PreHash? = null)

Properties

Link copied to clipboard
val bip44AddressIndex: Int? = null
Link copied to clipboard
val bip44change: Int? = null
Link copied to clipboard
Link copied to clipboard
val derivationPath: List<Long>? = null
Link copied to clipboard
val preHash: PreHash? = null
Link copied to clipboard
val type: String? = null