Types
AccountType
Property | Description |
---|---|
provider | The provider to which the account belongs to. |
name | n/a (for future use) |
public_key | The public key. |
connected_at | Timestamp for the initial connection of the account |
token | n/a (for future use) |
custom | Custom data. Depends on the provider. |
balance | Total balance of the account in CSPR motes (includes liquid +staked balance) |
CsprClickInitOptions
Property | Description |
---|---|
appName | The name of your app as it will be shown in the pop-up windows. |
appId | An application identifier. Read more about it here. |
contentMode | Defines whether the sign in interface is shown within an iframe in your application or in external pop-up windows. |
casperNode | The RPC endpoint CSPR.click uses to get information from the Casper network and to send deploys. |
chainName | Use |
providers | The list of providers (wallets) you want to allow in your application |
The wallets you can add to the providers
array are:
casper-wallet
casper-signer
casperdash
ledger
metamask-snap
torus-wallet
SendResult
Property | Description |
---|---|
cancelled |
|
deployHash | The hash of the deploy signed and sent to the Casper network. |
error |
|
errorData | extra information on the error. It's usually a json object. |
SignResult
Property | Description |
---|---|
cancelled |
|
signatureHex | An hexadecimal string with the crytpographic signature of the deploy. |
signature | A byte array with the cryptographic signature of the deploy. |
deploy | A json object containing the deploy with the user approval entry (i.e., the new signature). |
error |
|
Last updated