@orangecheck/sdk / issueBondMessage
Function: issueBondMessage()
function issueBondMessage(opts: {
address: string;
now?: Date;
outpoint: string;
subject: string;
ttlSeconds?: number;
}): {
expiresAt: number;
message: string;
nonce: string;
};
Defined in: bond.ts:113
A fresh bond message with a random nonce and a short signing window.
Parameters
| Parameter | Type | Description |
|---|---|---|
opts | { address: string; now?: Date; outpoint: string; subject: string; ttlSeconds?: number; } | - |
opts.address | string | - |
opts.now? | Date | - |
opts.outpoint | string | - |
opts.subject | string | - |
opts.ttlSeconds? | number | Signing window in seconds. Default 600. |
Returns
{
expiresAt: number;
message: string;
nonce: string;
}
| Name | Type | Defined in |
|---|---|---|
expiresAt | number | bond.ts:120 |
message | string | bond.ts:120 |
nonce | string | bond.ts:120 |