Constructors

Properties

Accessors

Methods

addBundledTransactions addPublicAddress addPublicAddresses burnFioAddress cancelFundsRequest executePreparedTrx genericAction getAbi getAccount getAccountPubKey getCancelledFioRequests getEncryptKey getFee getFeeForAddBundledTransactions getFeeForAddPublicAddress getFeeForBurnFioAddress getFeeForCancelFundsRequest getFeeForNewFundsRequest getFeeForRecordObtData getFeeForRejectFundsRequest getFeeForRemoveAllPublicAddresses getFeeForRemovePublicAddresses getFeeForTransferFioAddress getFeeForTransferFioDomain getFeeForTransferLockedTokens getFioAddresses getFioBalance getFioDomains getFioNames getFioPublicAddress getFioPublicKey getGranteePermissions getGrantorPermissions getLocks getMultiplier getNfts getObjectPermissions getObtData getOracleFees getPendingFioRequests getPublicAddress getPublicAddresses getReceivedFioRequests getSentFioRequests getTechnologyProviderId isAvailable pushTransaction recordObtData registerFioAddress registerFioDomain registerFioDomainAddress registerOwnerFioAddress registerOwnerFioDomain rejectFundsRequest removeAllPublicAddresses removePublicAddresses renewFioAddress renewFioDomain requestFunds setApiUrls setFioDomainVisibility setSignedTrxReturnOption stakeFioTokens transferFioAddress transferFioDomain transferLockedTokens transferTokens unStakeFioTokens validateChainCode validateFioAddress validateFioDomain validateFioPublicKey validatePublicAddress validateTokenCode SUFToAmount SUFToAmountString accountHash amountToSUF amountToSUFString createPrivateKeyMnemonic derivedPublicKey isChainCodeValid isFioAddressValid isFioDomainValid isFioPublicKeyValid isPublicAddressValid isTokenCodeValid setRawAbiMissingWarnings

Constructors

  • Parameters

    • privateKey: string

      the fio private key of the client sending requests to FIO API.

    • publicKey: string

      the fio public key of the client sending requests to FIO API.

    • apiUrls: string | string[]

      the url or list of urls to the FIO API.

    • fetchJson: FetchJson

      the module to use for HTTP Post/Get calls How to instantiate fetchJson parameter:

      // i.e.
      fetch = require('node-fetch')

      const fetchJson = async (uri, opts = {}) => {
      return fetch(uri, opts)
      }
    • OptionalregisterMockUrl: null | string

      the url to the mock server

    • OptionaltechnologyProviderId: null | string

      Default FIO Address of the wallet which generates transactions.

    • OptionalreturnPreparedTrx: null | boolean

      flag indicate that it should return prepared transaction or should be pushed to server.

    • Optionallogger: null | FioLogger

      FioLogger FIO logger to handle all requests.

    Returns FIOSDK

  • Parameters

    Returns FIOSDK

Properties

config: RequestConfig
privateKey: string

the fio private key of the client sending requests to FIO API.

publicKey: string

the fio public key of the client sending requests to FIO API.

rawAbiMissingWarnings: string[]

Stored raw abi missing warnings

technologyProviderId: string

Default FIO Address of the wallet which generates transactions.

SUFUnit: number = 1000000000

SUFs = Smallest Units of FIO

rawAbiMissingWarnings: string[]

Accessors

  • get transactions(): {
        createRawTransaction: ((__namedParameters: {
            account: Account;
            action: Action;
            authPermission?: string;
            chainData?: {
                expiration: string;
                ref_block_num: number;
                ref_block_prefix: number;
            };
            data: any;
            publicKey?: string;
            signingAccount?: string;
        }) => Promise<RawRequest>);
        deserialize: ((__namedParameters: {
            abiMap?: Map<string, any>;
            chainId: string;
            serializedTransaction: Uint8Array;
            textDecoder?: TextDecoder;
            textEncoder?: TextEncoder;
        }) => Promise<RawRequest>);
        getActor: ((publicKey?: string) => string);
        getBlock: ((chain: FioInfoResponse) => Promise<GetBlockResult>);
        getChainDataForTx: (() => Promise<{
            chain_id: string;
            expiration: string;
            ref_block_num: number;
            ref_block_prefix: number;
        }>);
        getChainInfo: (() => Promise<FioInfoResponse>);
        getCipherContent: ((contentType: ContentType, content: any, privateKey: string, publicKey: string) => string);
        getUnCipherContent: (<T>(contentType: ContentType, content: string, privateKey: string, publicKey: string) => T);
        serialize: ((__namedParameters: {
            abiMap?: Map<string, any>;
            chainId: string;
            textDecoder?: TextDecoder;
            textEncoder?: TextEncoder;
            transaction: RawRequest;
        }) => Promise<PushTransactionArgs>);
    }
  • Returns {
        createRawTransaction: ((__namedParameters: {
            account: Account;
            action: Action;
            authPermission?: string;
            chainData?: {
                expiration: string;
                ref_block_num: number;
                ref_block_prefix: number;
            };
            data: any;
            publicKey?: string;
            signingAccount?: string;
        }) => Promise<RawRequest>);
        deserialize: ((__namedParameters: {
            abiMap?: Map<string, any>;
            chainId: string;
            serializedTransaction: Uint8Array;
            textDecoder?: TextDecoder;
            textEncoder?: TextEncoder;
        }) => Promise<RawRequest>);
        getActor: ((publicKey?: string) => string);
        getBlock: ((chain: FioInfoResponse) => Promise<GetBlockResult>);
        getChainDataForTx: (() => Promise<{
            chain_id: string;
            expiration: string;
            ref_block_num: number;
            ref_block_prefix: number;
        }>);
        getChainInfo: (() => Promise<FioInfoResponse>);
        getCipherContent: ((contentType: ContentType, content: any, privateKey: string, publicKey: string) => string);
        getUnCipherContent: (<T>(contentType: ContentType, content: string, privateKey: string, publicKey: string) => T);
        serialize: ((__namedParameters: {
            abiMap?: Map<string, any>;
            chainId: string;
            textDecoder?: TextDecoder;
            textEncoder?: TextEncoder;
            transaction: RawRequest;
        }) => Promise<PushTransactionArgs>);
    }

    • createRawTransaction: ((__namedParameters: {
          account: Account;
          action: Action;
          authPermission?: string;
          chainData?: {
              expiration: string;
              ref_block_num: number;
              ref_block_prefix: number;
          };
          data: any;
          publicKey?: string;
          signingAccount?: string;
      }) => Promise<RawRequest>)
        • (__namedParameters): Promise<RawRequest>
        • Parameters

          • __namedParameters: {
                account: Account;
                action: Action;
                authPermission?: string;
                chainData?: {
                    expiration: string;
                    ref_block_num: number;
                    ref_block_prefix: number;
                };
                data: any;
                publicKey?: string;
                signingAccount?: string;
            }
            • account: Account
            • action: Action
            • OptionalauthPermission?: string
            • OptionalchainData?: {
                  expiration: string;
                  ref_block_num: number;
                  ref_block_prefix: number;
              }
              • expiration: string
              • ref_block_num: number
              • ref_block_prefix: number
            • data: any
            • OptionalpublicKey?: string
            • OptionalsigningAccount?: string

          Returns Promise<RawRequest>

    • deserialize: ((__namedParameters: {
          abiMap?: Map<string, any>;
          chainId: string;
          serializedTransaction: Uint8Array;
          textDecoder?: TextDecoder;
          textEncoder?: TextEncoder;
      }) => Promise<RawRequest>)
        • (__namedParameters): Promise<RawRequest>
        • Parameters

          • __namedParameters: {
                abiMap?: Map<string, any>;
                chainId: string;
                serializedTransaction: Uint8Array;
                textDecoder?: TextDecoder;
                textEncoder?: TextEncoder;
            }
            • OptionalabiMap?: Map<string, any>
            • chainId: string
            • serializedTransaction: Uint8Array
            • OptionaltextDecoder?: TextDecoder
            • OptionaltextEncoder?: TextEncoder

          Returns Promise<RawRequest>

    • getActor: ((publicKey?: string) => string)
        • (publicKey?): string
        • Parameters

          • publicKey: string = ''

          Returns string

    • getBlock: ((chain: FioInfoResponse) => Promise<GetBlockResult>)
        • (chain): Promise<GetBlockResult>
        • Parameters

          Returns Promise<GetBlockResult>

    • getChainDataForTx: (() => Promise<{
          chain_id: string;
          expiration: string;
          ref_block_num: number;
          ref_block_prefix: number;
      }>)
        • (): Promise<{
              chain_id: string;
              expiration: string;
              ref_block_num: number;
              ref_block_prefix: number;
          }>
        • Returns Promise<{
              chain_id: string;
              expiration: string;
              ref_block_num: number;
              ref_block_prefix: number;
          }>

    • getChainInfo: (() => Promise<FioInfoResponse>)
    • getCipherContent: ((contentType: ContentType, content: any, privateKey: string, publicKey: string) => string)
        • (contentType, content, privateKey, publicKey): string
        • Parameters

          • contentType: ContentType
          • content: any
          • privateKey: string
          • publicKey: string

          Returns string

    • getUnCipherContent: (<T>(contentType: ContentType, content: string, privateKey: string, publicKey: string) => T)
        • <T>(contentType, content, privateKey, publicKey): T
        • Type Parameters

          • T = any

          Parameters

          • contentType: ContentType
          • content: string
          • privateKey: string
          • publicKey: string

          Returns T

    • serialize: ((__namedParameters: {
          abiMap?: Map<string, any>;
          chainId: string;
          textDecoder?: TextDecoder;
          textEncoder?: TextEncoder;
          transaction: RawRequest;
      }) => Promise<PushTransactionArgs>)
        • (__namedParameters): Promise<PushTransactionArgs>
        • Parameters

          • __namedParameters: {
                abiMap?: Map<string, any>;
                chainId: string;
                textDecoder?: TextDecoder;
                textEncoder?: TextEncoder;
                transaction: RawRequest;
            }
            • OptionalabiMap?: Map<string, any>
            • chainId: string
            • OptionaltextDecoder?: TextDecoder
            • OptionaltextEncoder?: TextEncoder
            • transaction: RawRequest

          Returns Promise<PushTransactionArgs>

Methods

  • Parameters

    • fioAddress: string

      FIO Address to transfer. The owner will be the public key associated with the FIO SDK instance.

    • bundleSets: number

      Number of sets of bundles to add to FIO Address.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<AddBundledTransactionsResponse>

    Adds bundles of transactions to FIO Address.

  • Adds bundles of transactions to FIO Address.

    Returns Promise<AddBundledTransactionsResponse>

  • Parameters

    • fioAddress: string

      FIO Address which will be mapped to public address.

    • chainCode: string

      Blockchain code for blockchain hosting this token.

    • tokenCode: string

      Token code to be used with that public address.

    • publicAddress: string

      The public address to be added to the FIO Address for the specified token.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<AddPublicAddressesResponse>

    This call allows a public address of the specific blockchain type to be added to the FIO Address.

  • This call allows a public address of the specific blockchain type to be added to the FIO Address.

    Parameters

    Returns Promise<AddPublicAddressesResponse>

  • Parameters

    • fioAddress: string

      FIO Address which will be mapped to public addresses.

    • publicAddresses: PublicAddress[]

      Array of public addresses to be added to the FIO Address for the specified token.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<AddPublicAddressesResponse>

    This call allows a public addresses of the specific blockchain type to be added to the FIO Address.

  • This call allows a public addresses of the specific blockchain type to be added to the FIO Address.

    Parameters

    Returns Promise<AddPublicAddressesResponse>

  • Parameters

    • fioAddress: string

      FIO Address to burn. The owner will be the public key associated with the FIO SDK instance.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<BurnFioAddressResponse>

    Burns a FIO Address on the FIO blockchain.

  • Burns a FIO Address on the FIO blockchain.

    Parameters

    Returns Promise<BurnFioAddressResponse>

  • Execute prepared transaction.

    Parameters

    • endPoint: EndPoint

      endpoint.

    • preparedTrx: unknown

    Returns Promise<any>

  • Type Parameters

    • T extends
          | "getFioPublicKey"
          | "getMultiplier"
          | "getAbi"
          | "getEncryptKey"
          | "getFee"
          | "recordObtData"
          | "registerFioAddress"
          | "registerFioDomain"
          | "registerFioDomainAddress"
          | "renewFioAddress"
          | "renewFioDomain"
          | "setFioDomainVisibility"
          | "transferTokens"
          | "getAccount"
          | "registerOwnerFioAddress"
          | "transferLockedTokens"
          | "registerOwnerFioDomain"
          | "burnFioAddress"
          | "transferFioAddress"
          | "transferFioDomain"
          | "addBundledTransactions"
          | "addPublicAddress"
          | "addPublicAddresses"
          | "removePublicAddresses"
          | "getLocks"
          | "cancelFundsRequest"
          | "removeAllPublicAddresses"
          | "getObtData"
          | "getGranteePermissions"
          | "getGrantorPermissions"
          | "getObjectPermissions"
          | "rejectFundsRequest"
          | "requestFunds"
          | "isAvailable"
          | "getFioBalance"
          | "getFioNames"
          | "getFioDomains"
          | "getFioAddresses"
          | "getPendingFioRequests"
          | "getReceivedFioRequests"
          | "getCancelledFioRequests"
          | "getSentFioRequests"
          | "getPublicAddress"
          | "getFioPublicAddress"
          | "getPublicAddresses"
          | "getNfts"
          | "stakeFioTokens"
          | "unStakeFioTokens"
          | "getOracleFees"
          | "getFeeForRecordObtData"
          | "getFeeForNewFundsRequest"
          | "getFeeForRejectFundsRequest"
          | "getFeeForBurnFioAddress"
          | "getFeeForTransferFioAddress"
          | "getFeeForTransferFioDomain"
          | "getFeeForAddBundledTransactions"
          | "getFeeForAddPublicAddress"
          | "getFeeForCancelFundsRequest"
          | "getFeeForRemovePublicAddresses"
          | "getFeeForRemoveAllPublicAddresses"
          | "getFeeForTransferLockedTokens"
          | "pushTransaction"
          | "getAccountPubKey"
          | GenericAction

    Parameters

    Returns GenericActions[typeof GenericAction[T]]["response"]

  • Parameters

    • endPoint: EndPoint

      Name of API call end point, e.g. add_pub_address.

    • OptionalfioAddress: null | string

      if endPointName is RenewFioAddress, FIO Address incurring the fee and owned by signer. if endPointName is RenewFioDomain, FIO Domain incurring the fee and owned by signer. if endPointName is RecordObtData, Payer FIO Address incurring the fee and owned by signer.

      Omit for:

      • register_fio_domain
      • register_fio_address
      • transfer_tokens_pub_key

    Returns Promise<FioFeeResponse>

    Compute and return fee amount for specific call and specific user

  • Compute and return fee amount for specific call and specific user

    Parameters

    Returns Promise<FioFeeResponse>

  • Retrieves the FIO public key assigned to the FIOSDK instance.

    Returns string

  • Parameters

    • grantorAccount: string

      string account name of the grantor account

    • Optionallimit: null | number

      Number of request to return. If omitted, all requests will be returned.

    • Optionaloffset: null | number

      First request from list to return. If omitted, 0 is assumed.

    Returns Promise<PermissionsResponse>

    Gets FIO permissions for the specified grantor account.

  • Gets FIO permissions for the specified grantor account.

    Parameters

    Returns Promise<PermissionsResponse>

  • Parameters

    • options: {
          chainCode?: null | string;
          contractAddress?: null | string;
          fioAddress?: null | string;
          hash?: null | string;
          tokenId?: null | string;
      }

      Detects the way how to get the data.

      • OptionalchainCode?: null | string

        Chain code where NFT contract resides.

      • OptionalcontractAddress?: null | string

        NFT contract address.

      • OptionalfioAddress?: null | string

        FIO Address.

      • Optionalhash?: null | string

        SHA-256 hash of NFT asset, e.g. media url.

      • OptionaltokenId?: null | string

        NFT token ID.

    • Optionallimit: null | number

      Number of records to return. If omitted, all records will be returned. Due to table read timeout, a value of less than 1,000 is recommended.

    • Optionaloffset: null | number

      First record from list to return. If omitted, 0 is assumed.

    Returns Promise<NftsResponse>

    Returns all mapped NFTs which have the specified contract address and token id or FIO Address or hash.

  • Returns all mapped NFTs which have the specified contract address and token id or FIO Address or hash.

    Parameters

    Returns Promise<NftsResponse>

  • Parameters

    • permissionName: string

      string permission name ex register_address_on_domain

    • objectName: string
    • Optionallimit: null | number

      Number of request to return. If omitted, all requests will be returned.

    • Optionaloffset: null | number

      First request from list to return. If omitted, 0 is assumed.

    Returns Promise<PermissionsResponse>

    Gets FIO permissions for the specified permission name and object name account.

  • Gets FIO permissions for the specified permission name and object name account.

    Parameters

    Returns Promise<PermissionsResponse>

  • Returns technologyProviderId or default

    Parameters

    • OptionaltechnologyProviderId: null | string

    Returns string

  • Allows advance user to send their own content directly to FIO contracts

    Parameters

    Returns Promise<any>

  • Parameters

    • fioAddress: string

      FIO Address to register.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<RegisterFioAddressResponse>

    Registers a FIO Address on the FIO blockchain. The owner will be the public key associated with the FIO SDK instance.

  • Registers a FIO Address on the FIO blockchain. The owner will be the public key associated with the FIO SDK instance.

    Parameters

    Returns Promise<RegisterFioAddressResponse>

  • Parameters

    • fioDomain: string

      FIO Domain to register. The owner will be the public key associated with the FIO SDK instance.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<RegisterFioDomainResponse>

    Registers a FIO Domain on the FIO blockchain.

  • Registers a FIO Domain on the FIO blockchain.

    Parameters

    Returns Promise<RegisterFioDomainResponse>

  • Parameters

    • fioAddress: string

      FIO Address to register.

    • ownerPublicKey: string

      Owner FIO Public Key.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<RegisterFioAddressResponse>

    Registers a Fio Address on behalf of the owner FIO Public key parameter. Owner FIO Public key owns the FIO address

  • Registers a Fio Address on behalf of the owner FIO Public key parameter. Owner FIO Public key owns the FIO address

    Returns Promise<RegisterFioAddressResponse>

  • Parameters

    • fioDomain: string

      FIO Domain to register. The owner will be the public key associated with the FIO SDK instance.

    • ownerPublicKey: string

      Owner FIO Public Key.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<RegisterFioDomainResponse>

    Registers a FIO Domain on behalf of the owner FIO Public key parameter. Owner FIO Public key owns the FIO domain.

  • Registers a FIO Domain on behalf of the owner FIO Public key parameter. Owner FIO Public key owns the FIO domain.

    Returns Promise<RegisterFioDomainResponse>

  • Parameters

    • fioAddress: string

      FIO Address which will be mapped to public address.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<RemoveAllPublicAddressesResponse>

    This call allows a user to remove all addresses from the specified FIO Address, all addresses except the FIO address will be removed.

  • This call allows a user to remove all addresses from the specified FIO Address, all addresses except the FIO address will be removed.

    Returns Promise<RemoveAllPublicAddressesResponse>

  • Parameters

    • fioAddress: string

      FIO Address which will be mapped to public address.

    • publicAddresses: PublicAddress[]

      a list of publicAddresses, each containing chain_code, token_code, and public_address.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<RemovePublicAddressesResponse>

    This call allows an any number of public addresses matching the blockchain code, the token code and the public address to be removed from the FIO Address.

  • This call allows an any number of public addresses matching the blockchain code, the token code and the public address to be removed from the FIO Address.

    Parameters

    Returns Promise<RemovePublicAddressesResponse>

  • Parameters

    • fioDomain: string

      FIO Domain to renew.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    • OptionalexpirationOffset: null | number

      Expiration time offset for this transaction in seconds. Default is 180 seconds. Increasing number of seconds gives transaction more lifetime term.

    Returns Promise<RenewFioDomainResponse>

    Renew a FIO Domain on the FIO blockchain.

  • Renew a FIO Domain on the FIO blockchain.

    Parameters

    Returns Promise<RenewFioDomainResponse>

  • Set transactions baseUrls

    Parameters

    • apiUrls: string[]

    Returns void

  • Parameters

    • fioDomain: string

      FIO Domain to change visibility.

    • isPublic: boolean

      true - allows anyone to register FIO Address, false - only owner of domain can register FIO Address.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<SetFioDomainVisibilityResponse>

    By default, all FIO Domains are non-public, meaning only the owner can register FIO Addresses on that domain. Setting them to public allows anyone to register a FIO Address on that domain.

  • By default, all FIO Domains are non-public, meaning only the owner can register FIO Addresses on that domain. Setting them to public allows anyone to register a FIO Address on that domain.

    Returns Promise<SetFioDomainVisibilityResponse>

  • Set returnPreparedTrx

    Parameters

    • returnPreparedTrx: boolean

    Returns void

  • Parameters

    • amount: number

      Amount of SUFs to stake.

    • OptionalfioAddress: null | string

      FIO Address if using bundled transactions to pay. May be left empty if paying a fee instead.

    • OptionalmaxFee: null | number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the entity which generates this transaction. TPID rewards will be paid to this address. Set to empty if not known.

    Returns Promise<TransactionResponse>

    Stake FIO Tokens.

  • Stake FIO Tokens.

    Parameters

    Returns Promise<TransactionResponse>

  • Parameters

    • fioAddress: string

      FIO Address to transfer. The owner will be the public key associated with the FIO SDK instance.

    • newOwnerKey: string

      FIO Public Key of the new owner.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<TransferFioAddressResponse>

    Transfers a FIO Address on the FIO blockchain.

  • Transfers a FIO Address on the FIO blockchain.

    Parameters

    Returns Promise<TransferFioAddressResponse>

  • Parameters

    • fioDomain: string

      FIO Domain to transfer. The owner will be the public key associated with the FIO SDK instance.

    • newOwnerKey: string

      FIO Public Key of the new owner.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by @ [getFee] for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<TransferFioDomainResponse>

    Transfers a FIO Domain on the FIO blockchain.

  • Transfers a FIO Domain on the FIO blockchain.

    Parameters

    Returns Promise<TransferFioDomainResponse>

  • Parameters

    • payeePublicKey: string

      this is the fio public key for the user to receive locked tokens.

    • canVote: boolean

      true if these locked tokens can be voted, false if these locked tokens are not to be voted.

    • periods: LockPeriod[]

      this is an array of lock periods defining the duration and percent of each period, must be in time order.

    • amount: number

      this is the amount in SUFs to be transferred.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<TransferLockedTokensResponse>

    This call allows a user to transfer locked tokens to the specified fio public key

  • This call allows a user to transfer locked tokens to the specified fio public key

    Parameters

    Returns Promise<TransferLockedTokensResponse>

  • Parameters

    • payeeFioPublicKey: string

      FIO public Address of the one receiving the tokens.

    • amount: number

      Amount sent in SUFs.

    • maxFee: number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the wallet which generates this transaction.

    Returns Promise<TransferTokensResponse>

    Transfers FIO tokens from public key associated with the FIO SDK instance to the payeePublicKey.

  • Transfers FIO tokens from public key associated with the FIO SDK instance to the payeePublicKey.

    Parameters

    Returns Promise<TransferTokensResponse>

  • Parameters

    • amount: number

      Amount of SUFs to unstake.

    • OptionalfioAddress: null | string

      FIO Address if using bundled transactions to pay. May be left empty if paying a fee instead.

    • OptionalmaxFee: null | number

      Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value.

    • OptionaltechnologyProviderId: null | string

      FIO Address of the entity which generates this transaction. TPID rewards will be paid to this address. Set to empty if not known.

    Returns Promise<TransactionResponse>

    Unstake FIO Tokens.

  • Unstake FIO Tokens.

    Parameters

    Returns Promise<TransactionResponse>

  • Is the Chain Code Valid?

    Parameters

    • chainCode: string

    Returns boolean

    Chain Code is Valid

  • Is the FIO Address Valid?

    Parameters

    • fioAddress: string

    Returns boolean

    Fio Address is Valid

  • Is the FIO Domain Valid?

    Parameters

    • fioDomain: string

    Returns boolean

    FIO Domain is Valid

  • Is the FIO Public Key Valid?

    Parameters

    • fioPublicKey: string

    Returns boolean

    FIO Public Key is Valid

  • Is the Public Address Valid?

    Parameters

    • publicAddress: string

    Returns boolean

    Public Address is Valid

  • Is the Token Code Valid?

    Parameters

    • tokenCode: string

    Returns boolean

    Token Code is Valid

  • Convert FIO SUFs to a FIO Token amount

    Parameters

    • suf: string | number

      {string | number}

    Returns number

    FIO Token amount

  • Convert FIO SUFs to a FIO Token amount

    Parameters

    • suf: string | number

      {string | number}

    Returns string

    FIO Token amount

  • hash a pub key

    Parameters

    • fioPublicKey: string

      FIO private key.

    Returns {
        accountnm: string;
    }

    FIO account derived from pub key.

    • accountnm: string
  • Convert a FIO Token Amount to FIO SUFs

    Parameters

    • amount: number

      2.568 FIO should be 2568000000 SUFs

    Returns number

    FIO SUFs

  • Convert a FIO Token Amount to FIO SUFs

    Parameters

    • amount: string | number

      2.568 FIO should be 2568000000 SUFs

    Returns string

    FIO SUFs

  • Create a FIO private key.

    Private key generation in the SDK is available for testing purposes only. Do not generate private keys for production application using this method. Instead pass securely generated private keys or seed phrase to the SDK constructor.

    Parameters

    • mnemonic: string

      mnemonic used to generate a random unique private key.

    Returns Promise<{
        fioKey: any;
        mnemonic: string;
    }>

    New FIO private key

    real flame win provide layer trigger soda erode upset rate beef wrist fame design merit
    
  • Create a FIO public key.

    Parameters

    • fioPrivateKey: string

      FIO private key.

    Returns {
        publicKey: string;
    }

    FIO public key derived from the FIO private key.

    • publicKey: string
  • Set stored raw abi missing warnings

    Parameters

    • rawAbiName: string
    • fioSdkInstance: FIOSDK

    Returns void