Interface: EnvVars
Important context that is used throughout the SDK. This is generated when initKeypom
is called and can be retrieved by calling useKeypom
.
All parameters will start off as undefined until the Keypom SDK is initialized.
Properties
attachedGas
Optional
attachedGas: string
The amount of Gas that will be attached to the claim
and create_account_and_claim
functions for claiming linkdrops (100 TGas).
Defined in
connection
Optional
connection: Connection
The connection instance that is part of the NEAR object
Defined in
contractAccount
Optional
contractAccount: Account
The NEAR Account object for the Keypom contract being used. This lets you know the account ID for the contract and can be used to sign transactions for claiming linkdrops.
Defined in
contractId
Optional
contractId: string
The account ID where the Keypom contract is deployed to.
Defined in
error
Optional
error: string
Defined in
execute
Optional
execute: any
Defined in
fundingAccount
Optional
fundingAccount: Account
The NEAR Account object for the Funder
Defined in
fundingAccountDetails
Optional
fundingAccountDetails: Funder
The details for the funder such as any rootEntropy
or their secretKey
etc.
Defined in
gas
Optional
gas: string
The default amount of Gas that will be attached to transactions (200 TGas).
Defined in
gas300
Optional
gas300: string
The max amount of Gas that will be attached to transactions (300 TGas).
Defined in
getAccount
Optional
getAccount: any
Defined in
keyStore
Optional
keyStore: KeyStore
Which type of KeyStore is used when locating keys and signing transactions throughout the SDK (In Memory, Unencrypted FileStore etc.)
Defined in
near
Optional
near: Near
The specific NEAR object that contains important information such as the KeyStore and connection. This is used to interact with the chain and can either be manually passed in or will be automatically created during initKeypom
Defined in
networkId
Optional
networkId: string
What network is the SDK using (testnet
or mainnet
)
Defined in
receiverId
Optional
receiverId: string
Defined in
supportedKeypomContracts
Optional
supportedKeypomContracts: Object
Object containing the supported Keypom contracts for both mainnet and testnet
Type declaration
Name | Type |
---|---|
mainnet | {} |
testnet | {} |
Defined in
viewAccount
Optional
viewAccount: any
Defined in
viewCall
Optional
viewCall: any
Function that allows you to invoke a view method. This takes in a receiverId
, methodName
, and args
.