Interfaces
Orderly network core.Signer
Orderly SDKs / Modules / @orderly.network/core / Signer
Interface: Signer
@orderly.network/core.Signer
Singer interface
Example
const signer = new BaseSigner(keyStore);
const payload = await signer.sign({
url: "https://api.orderly.io/get_account?address=0x1234567890&brokerId=orderly",
method: "GET",
data: {
address: "0x1234567890",
brokerId: "orderly",
},
});
Implemented by
Table of contents
Properties
Properties
sign
• sign: (data
: MessageFactor
, timestamp?
: number
) => Promise
<SignedMessagePayload
>
Type declaration
▸ (data
, timestamp?
): Promise
<SignedMessagePayload
>
Parameters
Name | Type |
---|---|
data | MessageFactor |
timestamp? | number |
Returns
Promise
<SignedMessagePayload
>
Defined in
packages/core/src/signer.ts:38
signText
• signText: (text
: string
) => Promise
<{ publicKey
: string
; signature
: string
}>
Type declaration
▸ (text
): Promise
<{ publicKey
: string
; signature
: string
}>
Parameters
Name | Type |
---|---|
text | string |
Returns
Promise
<{ publicKey
: string
; signature
: string
}>