Skip to main content

Reference API

Namespaces

Enumerations

Classes

Interfaces

Other

NetworkAddress

Ƭ NetworkAddress: string

Accepted networks: Ethereum, Shimmer and IOTA.


DEFAULT_NETWORK_DECIMALS

Const DEFAULT_NETWORK_DECIMALS: 6

Default network decimals


DEFAULT_US_BLOCKED_COUNTRIES

Const DEFAULT_US_BLOCKED_COUNTRIES: string[]

Blocked countries by default.

// https://home.treasury.gov/policy-issues/financial-sanctions/sanctions-programs-and-country-information


MAX_PROPERTIES_COUNT

Const MAX_PROPERTIES_COUNT: 25

Max NFT properties.


MAX_STATS_COUNT

Const MAX_STATS_COUNT: 25

Max NFT stats.


NETWORK_DETAIL

Const NETWORK_DETAIL: Object

Detail of each DLT network

Type declaration

NameType
atoi{ decimals: number = 6; divideBy: number ; label: string = 'ATOI' }
atoi.decimalsnumber
atoi.divideBynumber
atoi.labelstring
iota{ decimals: number = 6; divideBy: number ; label: string = 'IOTA' }
iota.decimalsnumber
iota.divideBynumber
iota.labelstring
rms{ decimals: number = 6; divideBy: number ; label: string }
rms.decimalsnumber
rms.divideBynumber
rms.labelstring
smr{ decimals: number = 6; divideBy: number ; label: string }
smr.decimalsnumber
smr.divideBynumber
smr.labelstring

QUERY_MAX_LENGTH

Const QUERY_MAX_LENGTH: 100

QUERY max length


QUERY_MIN_LENGTH

Const QUERY_MIN_LENGTH: 1

QUERY min length


SOON_SPACE

Const SOON_SPACE: "0x5fcc5562385e6c2f6b0a5934280e5d11274f8e07"

Soonaverse space in production.


SOON_SPACE_TEST

Const SOON_SPACE_TEST: "0x0702535a8409d58d832fe80660c28dc61dee9704"

Soonaverse space in wen.soonaverse.com (sandbox)


SOON_TOKEN

Const SOON_TOKEN: "0x9600b5afbb84f15e0d4c0f90ea60b2b8d7bd0f1e"

Soonaverse SOON token in production.


SOON_TOKEN_TEST

Const SOON_TOKEN_TEST: "0x15e7e6663f3a88c0cce72a4cc3cd5c6786f0b1cf"

Soonaverse SOON token in wen.soonaverse.com (sandbox)


SoonaverseApiKey

Const SoonaverseApiKey: Object

Soonaverse API keys.

Index signature

▪ [key: string]: string


TRANSACTION_AUTO_EXPIRY_MS

Const TRANSACTION_AUTO_EXPIRY_MS: number

Timelimit for ORDER transaction to auto-expire.


TRANSACTION_DEFAULT_AUCTION

Const TRANSACTION_DEFAULT_AUCTION: number

Default auction length time.


TRANSACTION_MAX_EXPIRY_MS

Const TRANSACTION_MAX_EXPIRY_MS: number

Maximum amount of time any funds can be hold by Soonaverse address.


WenError

Const WenError: Object

Object of possible error codes.

Type declaration

NameType
address_must_be_provided{ code: number = 1002; key: string = 'Address must be provided.' }
address_must_be_provided.codenumber
address_must_be_provided.keystring
alias_not_deposited{ code: number = 2132; key: string = 'Alias must be sent to soonaverse' }
alias_not_deposited.codenumber
alias_not_deposited.keystring
api_error{ code: number = 2134; key: string = "You'r query combination is not supported. Please request support through Github" }
api_error.codenumber
api_error.keystring
at_least_one_guardian_must_be_in_the_space{ code: number = 2011; key: string = 'At least one guardian must be in the space.' }
at_least_one_guardian_must_be_in_the_space.codenumber
at_least_one_guardian_must_be_in_the_space.keystring
at_least_one_member_must_be_in_the_space{ code: number = 2020; key: string = 'At least one member must be in the space.' }
at_least_one_member_must_be_in_the_space.codenumber
at_least_one_member_must_be_in_the_space.keystring
auction_already_in_progress{ code: number = 2067; key: string = 'Auction already in progress.' }
auction_already_in_progress.codenumber
auction_already_in_progress.keystring
auction_does_not_exist{ code: number = 2143; key: string = 'Auction does not exist.' }
auction_does_not_exist.codenumber
auction_does_not_exist.keystring
auction_not_active{ code: number = 2142; key: string = 'Auction no longer active.' }
auction_not_active.codenumber
auction_not_active.keystring
available_from_must_be_in_the_future{ code: number = 2112; key: string = 'Available from must be in the future' }
available_from_must_be_in_the_future.codenumber
available_from_must_be_in_the_future.keystring
award_does_not_exists{ code: number = 2018; key: string = 'Award does not exists.' }
award_does_not_exists.codenumber
award_does_not_exists.keystring
award_is_already_approved{ code: number = 2042; key: string = 'Award is already approved.' }
award_is_already_approved.codenumber
award_is_already_approved.keystring
award_is_already_rejected{ code: number = 2043; key: string = 'Award is already rejected.' }
award_is_already_rejected.codenumber
award_is_already_rejected.keystring
award_is_no_longer_available{ code: number = 2026; key: string = 'Award is not available for participation.' }
award_is_no_longer_available.codenumber
award_is_no_longer_available.keystring
award_is_not_approved{ code: number = 2044; key: string = 'Award is not approved.' }
award_is_not_approved.codenumber
award_is_not_approved.keystring
award_is_rejected{ code: number = 2045; key: string = 'Award is rejected.' }
award_is_rejected.codenumber
award_is_rejected.keystring
blocked_country{ code: number = 2084; key: string = 'You country is not supported for this transaction.' }
blocked_country.codenumber
blocked_country.keystring
can_not_block_guardian{ code: number = 2135; key: string = 'Guardians can not be blocked. Create a Remove guardian request.' }
can_not_block_guardian.codenumber
can_not_block_guardian.keystring
can_not_change_validated_addess{ code: number = 2129; key: string = 'Can not change validated address' }
can_not_change_validated_addess.codenumber
can_not_change_validated_addess.keystring
can_not_credit_transaction{ code: number = 2098; key: string = 'Can not credit this transaction' }
can_not_credit_transaction.codenumber
can_not_credit_transaction.keystring
can_not_mint_in_pub_sale{ code: number = 2086; key: string = 'Token can not be minted in or before public sale.' }
can_not_mint_in_pub_sale.codenumber
can_not_mint_in_pub_sale.keystring
collection_does_not_exists{ code: number = 2046; key: string = 'Collection does not exists.' }
collection_does_not_exists.codenumber
collection_does_not_exists.keystring
collection_is_already_approved{ code: number = 2062; key: string = 'Collection is already approved.' }
collection_is_already_approved.codenumber
collection_is_already_approved.keystring
collection_is_already_rejected{ code: number = 2063; key: string = 'Collection is already rejected.' }
collection_is_already_rejected.codenumber
collection_is_already_rejected.keystring
collection_is_past_available_date{ code: number = 2064; key: string = 'Collection available from date is in the past already.' }
collection_is_past_available_date.codenumber
collection_is_past_available_date.keystring
collection_must_be_approved{ code: number = 2058; key: string = 'Collection must be approved.' }
collection_must_be_approved.codenumber
collection_must_be_approved.keystring
collection_must_be_classic{ code: number = 2126; key: string = 'Must be classic collection' }
collection_must_be_classic.codenumber
collection_must_be_classic.keystring
collection_not_irc27_compilant{ code: number = 2115; key: string = 'Collection metedata not irc27 compilant' }
collection_not_irc27_compilant.codenumber
collection_not_irc27_compilant.keystring
credit_has_expired{ code: number = 2146; key: string = 'Credit has expired.' }
credit_has_expired.codenumber
credit_has_expired.keystring
failed_to_decode_token{ code: number = 2003; key: string = 'Failed to decode the token.' }
failed_to_decode_token.codenumber
failed_to_decode_token.keystring
generated_spf_nft_must_be_sold_first{ code: number = 2055; key: string = 'To buy directly Generated NFT/SFT it must be sold first.' }
generated_spf_nft_must_be_sold_first.codenumber
generated_spf_nft_must_be_sold_first.keystring
hidden_nft{ code: number = 2095; key: string = 'NFT can not be hidden' }
hidden_nft.codenumber
hidden_nft.keystring
invalid_base_token_amount{ code: number = 2109; key: string = 'Invalid base token amount.' }
invalid_base_token_amount.codenumber
invalid_base_token_amount.keystring
invalid_collection_id{ code: number = 2138; key: string = 'Invalid collection id.' }
invalid_collection_id.codenumber
invalid_collection_id.keystring
invalid_collection_status{ code: number = 2089; key: string = 'Invalid collection status.' }
invalid_collection_status.codenumber
invalid_collection_status.keystring
invalid_custom_token{ code: number = 2106; key: string = 'Invalid custom token.' }
invalid_custom_token.codenumber
invalid_custom_token.keystring
invalid_foundry{ code: number = 2149; key: string = 'Invalid foundry.' }
invalid_foundry.codenumber
invalid_foundry.keystring
invalid_network{ code: number = 2120; key: string = 'Invalid network.' }
invalid_network.codenumber
invalid_network.keystring
invalid_nft_id{ code: number = 2137; key: string = 'Invalid nft id.' }
invalid_nft_id.codenumber
invalid_nft_id.keystring
invalid_nft_status{ code: number = 2091; key: string = 'Invalid nft status.' }
invalid_nft_status.codenumber
invalid_nft_status.keystring
invalid_params{ code: number = 1001; key: string = 'Invalid params' }
invalid_params.codenumber
invalid_params.keystring
invalid_project_api_key{ code: number = 2140; key: string = 'Invalid project api key.' }
invalid_project_api_key.codenumber
invalid_project_api_key.keystring
invalid_route{ code: number = 2100; key: string = 'Invalid route' }
invalid_route.codenumber
invalid_route.keystring
invalid_signature{ code: number = 1003; key: string = 'Invalid signature.' }
invalid_signature.codenumber
invalid_signature.keystring
invalid_swap_uid{ code: number = 2150; key: string = 'Invalid swap uid.' }
invalid_swap_uid.codenumber
invalid_swap_uid.keystring
invalid_tangle_request_type{ code: number = 2110; key: string }
invalid_tangle_request_type.codenumber
invalid_tangle_request_type.keystring
invalid_target_address{ code: number = 2141; key: string = 'Invalid target address.' }
invalid_target_address.codenumber
invalid_target_address.keystring
invalid_wallet_address{ code: number = 2002; key: string = 'Invalid wallet address.' }
invalid_wallet_address.codenumber
invalid_wallet_address.keystring
ipfs_retrieve{ code: number = 2117; key: string = 'Could not get data from ipfs' }
ipfs_retrieve.codenumber
ipfs_retrieve.keystring
legacy_award{ code: number = 2121; key: string = 'Legacy awards will be funded by soonaverse.' }
legacy_award.codenumber
legacy_award.keystring
max_10_fields{ code: number = 2131; key: string = 'A field name can appear maximum 10 times' }
max_10_fields.codenumber
max_10_fields.keystring
max_8_unique_field_names{ code: number = 2130; key: string = 'Maximum 8 unique field names are allowed' }
max_8_unique_field_names.codenumber
max_8_unique_field_names.keystring
max_size{ code: number = 2118; key: string = 'Maximum media size is 100 MB' }
max_size.codenumber
max_size.keystring
member_already_have_validated_address{ code: number = 2050; key: string = 'Member already have validated address.' }
member_already_have_validated_address.codenumber
member_already_have_validated_address.keystring
member_already_knocking{ code: number = 2097; key: string = 'Member already asking to join space' }
member_already_knocking.codenumber
member_already_knocking.keystring
member_did_not_request_to_join{ code: number = 2036; key: string = 'Member did not request to join.' }
member_did_not_request_to_join.codenumber
member_did_not_request_to_join.keystring
member_does_not_exists{ code: number = 2027; key: string = 'Member does not exists.' }
member_does_not_exists.codenumber
member_does_not_exists.keystring
member_is_already_blocked{ code: number = 2015; key: string = 'Member is already blocked.' }
member_is_already_blocked.codenumber
member_is_already_blocked.keystring
member_is_already_guardian_of_space{ code: number = 2013; key: string = 'Member is already guardian of space.' }
member_is_already_guardian_of_space.codenumber
member_is_already_guardian_of_space.keystring
member_is_already_owner_of_space{ code: number = 2019; key: string = 'Member is already owner of space.' }
member_is_already_owner_of_space.codenumber
member_is_already_owner_of_space.keystring
member_is_already_participant_of_space{ code: number = 2020; key: string = 'Member is already participant of space.' }
member_is_already_participant_of_space.codenumber
member_is_already_participant_of_space.keystring
member_is_not_blocked_in_the_space{ code: number = 2016; key: string = 'Member is not blocked in the space.' }
member_is_not_blocked_in_the_space.codenumber
member_is_not_blocked_in_the_space.keystring
member_is_not_guardian_of_space{ code: number = 2014; key: string = 'Member is not guardian of space.' }
member_is_not_guardian_of_space.codenumber
member_is_not_guardian_of_space.keystring
member_is_not_part_of_the_space{ code: number = 2012; key: string = 'Member is not part of the space.' }
member_is_not_part_of_the_space.codenumber
member_is_not_part_of_the_space.keystring
member_must_have_validated_address{ code: number = 2053; key: string = 'Member must have validated address.' }
member_must_have_validated_address.codenumber
member_must_have_validated_address.keystring
member_username_exists{ code: number = 2004; key: string = 'Username already exists.' }
member_username_exists.codenumber
member_username_exists.keystring
missing_nonce{ code: number = 1004; key: string = 'Missing nonce.' }
missing_nonce.codenumber
missing_nonce.keystring
multiple_members_with_same_address{ code: number = 2108; key: string = 'Multiple member with same validated address.' }
multiple_members_with_same_address.codenumber
multiple_members_with_same_address.keystring
nft_already_sold{ code: number = 2096; key: string = 'NFT already sold' }
nft_already_sold.codenumber
nft_already_sold.keystring
nft_date_must_be_after_or_same_with_collection_available_from_date{ code: number = 2065; key: string = 'Collection available from date is after NFT available from date.' }
nft_date_must_be_after_or_same_with_collection_available_from_date.codenumber
nft_date_must_be_after_or_same_with_collection_available_from_date.keystring
nft_does_not_belong_to_collection{ code: number = 2136; key: string = 'NFT does not belong to selected collection.' }
nft_does_not_belong_to_collection.codenumber
nft_does_not_belong_to_collection.keystring
nft_does_not_exists{ code: number = 2038; key: string = 'NFT does not exists.' }
nft_does_not_exists.codenumber
nft_does_not_exists.keystring
nft_is_no_longer_available{ code: number = 2039; key: string = 'NFT is no longer available.' }
nft_is_no_longer_available.codenumber
nft_is_no_longer_available.keystring
nft_locked_for_sale{ code: number = 2051; key: string = 'NFT is currently locked.' }
nft_locked_for_sale.codenumber
nft_locked_for_sale.keystring
nft_not_available_for_sale{ code: number = 2048; key: string = 'NFT is not available for sale.' }
nft_not_available_for_sale.codenumber
nft_not_available_for_sale.keystring
nft_not_deposited{ code: number = 2133; key: string = 'NFT must be sent to soonaverse' }
nft_not_deposited.codenumber
nft_not_deposited.keystring
nft_not_irc27_compilant{ code: number = 2114; key: string = 'NFT metadata not irc27 compilant' }
nft_not_irc27_compilant.codenumber
nft_not_irc27_compilant.keystring
nft_not_minted{ code: number = 2090; key: string = 'NFT not minted.' }
nft_not_minted.codenumber
nft_not_minted.keystring
nft_on_sale{ code: number = 2092; key: string = 'NFT is on sale.' }
nft_on_sale.codenumber
nft_on_sale.keystring
nft_placeholder_cant_be_purchased{ code: number = 2056; key: string = "Can't buy placeholder NFT." }
nft_placeholder_cant_be_purchased.codenumber
nft_placeholder_cant_be_purchased.keystring
nft_placeholder_cant_be_updated{ code: number = 2068; key: string = "Can't update placeholder NFT." }
nft_placeholder_cant_be_updated.codenumber
nft_placeholder_cant_be_updated.keystring
nft_set_as_avatar{ code: number = 2127; key: string = 'NFT is set as avatar' }
nft_set_as_avatar.codenumber
nft_set_as_avatar.keystring
nfts_must_be_within_same_network{ code: number = 2148; key: string = 'Nfts must be within same network.' }
nfts_must_be_within_same_network.codenumber
nfts_must_be_within_same_network.keystring
no_active_sells{ code: number = 2147; key: string = 'No active sell orders.' }
no_active_sells.codenumber
no_active_sells.keystring
no_airdrop_to_claim{ code: number = 2079; key: string = 'No airdrop to claim.' }
no_airdrop_to_claim.codenumber
no_airdrop_to_claim.keystring
no_available_tokens_for_sale{ code: number = 2081; key: string = 'No available tokens for sale.' }
no_available_tokens_for_sale.codenumber
no_available_tokens_for_sale.keystring
no_ipfs_media{ code: number = 2094; key: string = 'NFT does not have ipfs media' }
no_ipfs_media.codenumber
no_ipfs_media.keystring
no_more_available_badges{ code: number = 2021; key: string = 'There is no more available badges.' }
no_more_available_badges.codenumber
no_more_available_badges.keystring
no_more_nft_available_for_sale{ code: number = 2057; key: string = 'No more NFT available for sale.' }
no_more_nft_available_for_sale.codenumber
no_more_nft_available_for_sale.keystring
no_nfts_to_mint{ code: number = 2093; key: string = 'No nfts to mint in the collection.' }
no_nfts_to_mint.codenumber
no_nfts_to_mint.keystring
no_staked_soon{ code: number = 2101; key: string = 'Member has no staked SOONs' }
no_staked_soon.codenumber
no_staked_soon.keystring
no_token_public_sale{ code: number = 2075; key: string = 'Token not on public sale.' }
no_token_public_sale.codenumber
no_token_public_sale.keystring
no_tokens_available_for_airdrop{ code: number = 2078; key: string = 'No more tokens are available for airdrop.' }
no_tokens_available_for_airdrop.codenumber
no_tokens_available_for_airdrop.keystring
no_tokens_to_claim{ code: number = 2087; key: string = 'No tokens to claim.' }
no_tokens_to_claim.codenumber
no_tokens_to_claim.keystring
not_alias_governor{ code: number = 2122; key: string = 'Your are not the governor of the alias.' }
not_alias_governor.codenumber
not_alias_governor.keystring
not_enough_base_token{ code: number = 2119; key: string = 'Not enough base token.' }
not_enough_base_token.codenumber
not_enough_base_token.keystring
not_enough_funds{ code: number = 2076; key: string = 'Not enough funds to credit' }
not_enough_funds.codenumber
not_enough_funds.keystring
not_enough_staked_tokens{ code: number = 2104; key: string = 'Member has not enough staked tokens' }
not_enough_staked_tokens.codenumber
not_enough_staked_tokens.keystring
not_swap_owner{ code: number = 2151; key: string = 'You are not the creator of this swap.' }
not_swap_owner.codenumber
not_swap_owner.keystring
ntt_does_not_exists{ code: number = 2040; key: string = 'NTT does not exists.' }
ntt_does_not_exists.codenumber
ntt_does_not_exists.keystring
ntt_is_no_longer_available{ code: number = 2041; key: string = 'NTT is no longer available.' }
ntt_is_no_longer_available.codenumber
ntt_is_no_longer_available.keystring
ongoing_proposal{ code: number = 2107; key: string = 'Ongoing proposal in place already.' }
ongoing_proposal.codenumber
ongoing_proposal.keystring
owner_does_not_have_verified_address{ code: number = 2047; key: string = 'Owner must have verified address to be paid.' }
owner_does_not_have_verified_address.codenumber
owner_does_not_have_verified_address.keystring
proposal_does_not_exists{ code: number = 2022; key: string = 'Proposal does not exist.' }
proposal_does_not_exists.codenumber
proposal_does_not_exists.keystring
proposal_is_already_approved{ code: number = 2024; key: string = 'Proposal is already approved.' }
proposal_is_already_approved.codenumber
proposal_is_already_approved.keystring
proposal_is_already_rejected{ code: number = 2025; key: string = 'Proposal is already rejected.' }
proposal_is_already_rejected.codenumber
proposal_is_already_rejected.keystring
proposal_is_not_approved{ code: number = 2030; key: string = 'Proposal is not approved.' }
proposal_is_not_approved.codenumber
proposal_is_not_approved.keystring
proposal_is_rejected{ code: number = 2031; key: string = 'Proposal is rejected.' }
proposal_is_rejected.codenumber
proposal_is_rejected.keystring
proposal_must_be_in_future{ code: number = 2033; key: string = 'Proposal must be in future.' }
proposal_must_be_in_future.codenumber
proposal_must_be_in_future.keystring
proposal_start_date_must_be_before_end_date{ code: number = 2034; key: string = 'Proposal startDate must be before endDate.' }
proposal_start_date_must_be_before_end_date.codenumber
proposal_start_date_must_be_before_end_date.keystring
public_sale_already_set{ code: number = 2080; key: string = 'Public sale already set.' }
public_sale_already_set.codenumber
public_sale_already_set.keystring
royalty_fees_can_only_be_reduced{ code: number = 2072; key: string = 'Royalty fees can only be reduced.' }
royalty_fees_can_only_be_reduced.codenumber
royalty_fees_can_only_be_reduced.keystring
royalty_payout_must_be_above_1_mi{ code: number = 2046; key: string = 'Royalty payout must be above 1 Mi.' }
royalty_payout_must_be_above_1_mi.codenumber
royalty_payout_must_be_above_1_mi.keystring
signature_must_be_provided{ code: number = 1003; key: string = 'Signature must be provided.' }
signature_must_be_provided.codenumber
signature_must_be_provided.keystring
signature_or_custom_token_must_be_provided{ code: number = 2105; key: string = 'Signature or custom Token must be provided.' }
signature_or_custom_token_must_be_provided.codenumber
signature_or_custom_token_must_be_provided.keystring
space_already_have_validated_address{ code: number = 2049; key: string = 'Space already have validated address.' }
space_already_have_validated_address.codenumber
space_already_have_validated_address.keystring
space_does_not_exists{ code: number = 2005; key: string = 'Space does not exists.' }
space_does_not_exists.codenumber
space_does_not_exists.keystring
space_must_have_validated_address{ code: number = 2052; key: string = "Space must have validated IOTA or selected network's address (if collection that includes Royalty space)." }
space_must_have_validated_address.codenumber
space_must_have_validated_address.keystring
space_not_claimable{ code: number = 2113; key: string = 'Space not claimable' }
space_not_claimable.codenumber
space_not_claimable.keystring
stake_reward_started{ code: number = 2128; key: string = 'Stake reward already started' }
stake_reward_started.codenumber
stake_reward_started.keystring
swap_already_fulfilled{ code: number = 2153; key: string = 'Swap is already fulfilled.' }
swap_already_fulfilled.codenumber
swap_already_fulfilled.keystring
swap_already_rejected{ code: number = 2154; key: string = 'Swap is already rejected.' }
swap_already_rejected.codenumber
swap_already_rejected.keystring
swap_must_be_funded{ code: number = 2152; key: string = "You must send assets to the swap's address." }
swap_must_be_funded.codenumber
swap_must_be_funded.keystring
this_is_limited_addition_collection{ code: number = 2071; key: string = 'Collection is limited edition. No NFT can be added after approval.' }
this_is_limited_addition_collection.codenumber
this_is_limited_addition_collection.keystring
token_already_exists_for_space{ code: number = 2073; key: string = 'Only one token is allowed per space.' }
token_already_exists_for_space.codenumber
token_already_exists_for_space.keystring
token_based_space_access_can_not_be_edited{ code: number = 2103; key: string = 'Token based space access can not be edited' }
token_based_space_access_can_not_be_edited.codenumber
token_based_space_access_can_not_be_edited.keystring
token_does_not_exist{ code: number = 2102; key: string = 'Token does not exist' }
token_does_not_exist.codenumber
token_does_not_exist.keystring
token_in_invalid_status{ code: number = 2085; key: string = 'Token in invalid status.' }
token_in_invalid_status.codenumber
token_in_invalid_status.keystring
token_must_be_public{ code: number = 2124; key: string = 'Token must be public. Complete KYC.' }
token_must_be_public.codenumber
token_must_be_public.keystring
token_must_have_space{ code: number = 2145; key: string = 'Token must have a space.' }
token_must_have_space.codenumber
token_must_have_space.keystring
token_not_approved{ code: number = 2083; key: string = 'Token not approved.' }
token_not_approved.codenumber
token_not_approved.keystring
token_not_in_cool_down_period{ code: number = 2077; key: string = 'Token not in cool down period.' }
token_not_in_cool_down_period.codenumber
token_not_in_cool_down_period.keystring
token_not_irc30_compilant{ code: number = 2123; key: string = 'Token metedata not irc30 compilant' }
token_not_irc30_compilant.codenumber
token_not_irc30_compilant.keystring
token_not_minted{ code: number = 2088; key: string = 'Token is not minted.' }
token_not_minted.codenumber
token_not_minted.keystring
token_not_pre_minted{ code: number = 2082; key: string = 'Token not pre-minted.' }
token_not_pre_minted.codenumber
token_not_pre_minted.keystring
token_symbol_must_be_globally_unique{ code: number = 2074; key: string = 'Token symbol must be globally unique.' }
token_symbol_must_be_globally_unique.codenumber
token_symbol_must_be_globally_unique.keystring
token_trading_disabled{ code: number = 2111; key: string = 'Trading for this token is disabled' }
token_trading_disabled.codenumber
token_trading_disabled.keystring
transaction_already_confirmed{ code: number = 2099; key: string = 'Transaction already confirmed' }
transaction_already_confirmed.codenumber
transaction_already_confirmed.keystring
unapproved_site{ code: number = 1005; key: string = 'Site is not approved to interact.' }
unapproved_site.codenumber
unapproved_site.keystring
unknown{ code: number = 1000; key: string = 'Unknown error' }
unknown.codenumber
unknown.keystring
url_not_img_or_video{ code: number = 2125; key: string = 'Url does not point to an image or video' }
url_not_img_or_video.codenumber
url_not_img_or_video.keystring
value_does_not_exists_in_proposal{ code: number = 2032; key: string = 'Value does not exists in proposal.' }
value_does_not_exists_in_proposal.codenumber
value_does_not_exists_in_proposal.keystring
vote_is_no_longer_active{ code: number = 2037; key: string = 'Vote is no longer active.' }
vote_is_no_longer_active.codenumber
vote_is_no_longer_active.keystring
you_are_already_part_of_space{ code: number = 2007; key: string = 'You are already part of the space.' }
you_are_already_part_of_space.codenumber
you_are_already_part_of_space.keystring
you_are_not_admin_of_project{ code: number = 2139; key: string = 'You are not an admin of the project.' }
you_are_not_admin_of_project.codenumber
you_are_not_admin_of_project.keystring
you_are_not_allowed_member_to_purchase_this_nft{ code: number = 2070; key: string = 'You are not allowed to purchase this NFT as it is reserved for another user.' }
you_are_not_allowed_member_to_purchase_this_nft.codenumber
you_are_not_allowed_member_to_purchase_this_nft.keystring
you_are_not_allowed_to_join_space{ code: number = 2008; key: string = 'You are are not allowed to join space.' }
you_are_not_allowed_to_join_space.codenumber
you_are_not_allowed_to_join_space.keystring
you_are_not_allowed_to_vote_on_this_proposal{ code: number = 2029; key: string = 'You are not allowed to vote on this proposal.' }
you_are_not_allowed_to_vote_on_this_proposal.codenumber
you_are_not_allowed_to_vote_on_this_proposal.keystring
you_are_not_guardian_of_space{ code: number = 2006; key: string = 'You are not a guardian of the space.' }
you_are_not_guardian_of_space.codenumber
you_are_not_guardian_of_space.keystring
you_are_not_owner_of_proposal{ code: number = 2023; key: string = 'You are not an owner of the proposal.' }
you_are_not_owner_of_proposal.codenumber
you_are_not_owner_of_proposal.keystring
you_are_not_owner_of_the_award{ code: number = 2017; key: string = 'You are not an owner of the space.' }
you_are_not_owner_of_the_award.codenumber
you_are_not_owner_of_the_award.keystring
you_are_not_part_of_space{ code: number = 2006; key: string = 'You are not part of the space.' }
you_are_not_part_of_space.codenumber
you_are_not_part_of_space.keystring
you_are_not_part_of_the_space{ code: number = 2009; key: string = 'You are not part of the space.' }
you_are_not_part_of_the_space.codenumber
you_are_not_part_of_the_space.keystring
you_can_only_own_one_nft_from_collection{ code: number = 2061; key: string = 'You can only own one NFT from the collection.' }
you_can_only_own_one_nft_from_collection.codenumber
you_can_only_own_one_nft_from_collection.keystring
you_can_only_vote_on_members_proposal{ code: number = 2028; key: string = 'You can only vote on members proposal.' }
you_can_only_vote_on_members_proposal.codenumber
you_can_only_vote_on_members_proposal.keystring
you_cant_buy_your_nft{ code: number = 2069; key: string = 'You already own this NFT!' }
you_cant_buy_your_nft.codenumber
you_cant_buy_your_nft.keystring
you_dont_have_required_NFTs{ code: number = 2062; key: string = "You don't have required NFTs." }
you_dont_have_required_NFTs.codenumber
you_dont_have_required_NFTs.keystring
you_dont_have_required_badge{ code: number = 2059; key: string = "You don't have required badge." }
you_dont_have_required_badge.codenumber
you_dont_have_required_badge.keystring
you_have_currently_another_order_in_progress{ code: number = 2061; key: string = 'You have currently another order in progress.' }
you_have_currently_another_order_in_progress.codenumber
you_have_currently_another_order_in_progress.keystring
you_must_be_the_creator_of_this_collection{ code: number = 2060; key: string = 'You must be the creator of this collection.' }
you_must_be_the_creator_of_this_collection.codenumber
you_must_be_the_creator_of_this_collection.keystring
you_must_be_the_creator_of_this_token{ code: number = 2144; key: string = 'You must be the creator of this token.' }
you_must_be_the_creator_of_this_token.codenumber
you_must_be_the_creator_of_this_token.keystring
you_must_be_the_owner_of_nft{ code: number = 2066; key: string = 'You must be the owner of NFT.' }
you_must_be_the_owner_of_nft.codenumber
you_must_be_the_owner_of_nft.keystring

getNetworkPair

getNetworkPair(network): Network

Function to get the pair of a DLT network

Parameters

NameType
networkNetwork

Returns

Network


isOnline

isOnline(): Promise<void>

Promise based function to provide online status.

Returns

Promise<void>


toQueryParams

toQueryParams(params): string

Convert object into query params

Parameters

NameType
paramsRecord<string, unknown>

Returns

string


wrappedFetch

wrappedFetch<T>(token, url, params): Promise<T>

Wrapped fetch function to inject bearer and process responses

Type parameters

Name
T

Parameters

NameType
tokenstring
urlstring
paramsRecord<string, unknown>

Returns

Promise<T>