Documentation Index
Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
Use this file to discover all available pages before exploring further.
Get Account singleton, that can be used to e.g. register an account or create a new Orderly Key.
Example
const account = useAccountInstance();
return (
<>
<div>Connected address: {account.address}</div>
<div>Connected chain: {account.chainId}</div>
<button onClick={account.createAccount}>Register</button>
<button
onClick={() => {
account.createOrderlyKey(365);
}}
>
Create Orderly Key
</button>
<button onClick={account.settle}>Settle PnL</button>
</>
);