Skip to content

Latest commit

 

History

History
103 lines (56 loc) · 5.72 KB

GeneralSecretRecoveryPhrase.md

File metadata and controls

103 lines (56 loc) · 5.72 KB

GeneralSecretRecoveryPhrase

Properties

Name Type Description Notes
SecretRecoveryPhrase string The 12, 15, 18, 21, or 24 word phrase that can be used to derive many public key addresses (e.g., bottom army bless castle alter habit dish embody child flame smooth zone). To derive a wallet identifier (e.g., public key, public address, etc.), you need a secret recovery phrase, a derivation path, and an optional passphrase. Alternatively, you can derive a wallet identifier with a private key. Default Lengths: - Avalanche (C): 24 - Avalanche (X, P): 24 - Binance: 12 - Ethereum: 12 - Near: 12 - Solana: 12 You can use `secret_recovery_phrase` for Chains: `avalanche`, `binance`, `ethereum`, `near`, `solana`.
DerivationPath Pointer to string Derivation paths are used to derive the wallet identifier from the secret recovery phrase. Only correctly typed paths are accepted. Defaults: - Avalanche (C): m/44'/60'/0'/0/0 - Avalanche (X, P): m/44'/60'/0'/0/0 - Binance: m/44'/60'/0'/0/0 - Ethereum: m/44'/60'/0'/0/0 - Near: m/44/397/0 - Solana: m/44/501/0/0 Solana Behavior If you provide the empty string &quot;&quot; as the value for the derivation path, then we will derive your public key with the same behavior as the default behavior of the Solana CLI. By default, we use &quot;m/44/501/0/0&quot;. This is the path that the Phantom and Sollet wallets use. You can also arbitrarily increment the default path (&quot;m/44/501/0/0&quot;) to generate more wallets (e.g., &quot;m/44/501/0/1&quot;, &quot;m/44/501/0/2&quot;, ... AND/OR &quot;m/44/501/1/0&quot;, &quot;m/44/501/2/0&quot;, ...). Phantom's Wallet increments the first digit (e.g., &quot;m/44/501/0/0&quot;, &quot;m/44/501/1/0&quot;, &quot;m/44/501/2/0&quot;, ...) to generate more public key addresses. The SolFlare recommended path is &quot;m/44/501/0&quot;. To learn more about derivation paths, check out <a href=&quot;https://learnmeabitcoin.com/technical/derivation-paths\" target=&quot;_blank&quot;>this tutorial</a>. [optional]
Passphrase Pointer to string PASSPHRASE != PASSWORD. This is NOT your Phantom password or any other password. It is an optional string you use when creating a wallet. This provides an additional layer of security because a hacker would need both the secret recovery phrase and the passphrase to access the output public key. By default, most wallet UI extensions do not use a passphrase. (You probably did not use a passphrase.) Limited to 500 characters. [optional] [default to ""]

Methods

NewGeneralSecretRecoveryPhrase

func NewGeneralSecretRecoveryPhrase(secretRecoveryPhrase string, ) *GeneralSecretRecoveryPhrase

NewGeneralSecretRecoveryPhrase instantiates a new GeneralSecretRecoveryPhrase object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewGeneralSecretRecoveryPhraseWithDefaults

func NewGeneralSecretRecoveryPhraseWithDefaults() *GeneralSecretRecoveryPhrase

NewGeneralSecretRecoveryPhraseWithDefaults instantiates a new GeneralSecretRecoveryPhrase object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetSecretRecoveryPhrase

func (o *GeneralSecretRecoveryPhrase) GetSecretRecoveryPhrase() string

GetSecretRecoveryPhrase returns the SecretRecoveryPhrase field if non-nil, zero value otherwise.

GetSecretRecoveryPhraseOk

func (o *GeneralSecretRecoveryPhrase) GetSecretRecoveryPhraseOk() (*string, bool)

GetSecretRecoveryPhraseOk returns a tuple with the SecretRecoveryPhrase field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSecretRecoveryPhrase

func (o *GeneralSecretRecoveryPhrase) SetSecretRecoveryPhrase(v string)

SetSecretRecoveryPhrase sets SecretRecoveryPhrase field to given value.

GetDerivationPath

func (o *GeneralSecretRecoveryPhrase) GetDerivationPath() string

GetDerivationPath returns the DerivationPath field if non-nil, zero value otherwise.

GetDerivationPathOk

func (o *GeneralSecretRecoveryPhrase) GetDerivationPathOk() (*string, bool)

GetDerivationPathOk returns a tuple with the DerivationPath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDerivationPath

func (o *GeneralSecretRecoveryPhrase) SetDerivationPath(v string)

SetDerivationPath sets DerivationPath field to given value.

HasDerivationPath

func (o *GeneralSecretRecoveryPhrase) HasDerivationPath() bool

HasDerivationPath returns a boolean if a field has been set.

GetPassphrase

func (o *GeneralSecretRecoveryPhrase) GetPassphrase() string

GetPassphrase returns the Passphrase field if non-nil, zero value otherwise.

GetPassphraseOk

func (o *GeneralSecretRecoveryPhrase) GetPassphraseOk() (*string, bool)

GetPassphraseOk returns a tuple with the Passphrase field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPassphrase

func (o *GeneralSecretRecoveryPhrase) SetPassphrase(v string)

SetPassphrase sets Passphrase field to given value.

HasPassphrase

func (o *GeneralSecretRecoveryPhrase) HasPassphrase() bool

HasPassphrase returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]