Types
AccountType
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
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 casper
or casper-test
to interact with Casper Mainnet or Casper Testnet, respectively.
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
cancelled
true
when the user has declined the signature of the transaction. false
otherwise
deployHash
The hash of the deploy signed and sent to the Casper network. null
when the deploy signature has been cancelled or there was an error sending it to the network
error
null
if the deploy has been successfully signed and sent to the network. It contains an error message when the network rejects the deploy.
errorData
extra information on the error. It's usually a json object.
SignResult
cancelled
true
when the user has declined the signature of the transaction. false
otherwise
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
null
if the deploy has been successfully signed. It contains an error message otherwise.
Last updated