dashed-slug.net › Forums › Fiat Coin Adapter extension support › adding custom token
Tagged: coin adapter, custom coin, wallet adapter
- This topic has 3 replies, 2 voices, and was last updated 2 years, 6 months ago by
alexg.
-
AuthorPosts
-
February 28, 2022 at 3:31 am #11523
brutusinu
ParticipantPlease i am having difficulty in add a custom token to the fiat currency adapter. i always get an error message when i try to add a custom token saying ” please match the requested format”. please help.
February 28, 2022 at 10:19 am #11526alexg
KeymasterHello,
What string did you enter in the input box?
The accepted pattern is
^\s*[a-zA-Z_][a-zA-Z0-9_]*\s*,\s*[a-zA-Z]+(\s*,\s*[a-zA-Z_][a-zA-Z0-9_]*\s*,\s*[a-zA-Z]+\s*)*$
. You can test your string against this pattern at: https://www.regextester.com/This means that you are allowed to enter a name, followed by a comma and a ticker symbol, followed by more names and ticker symbols.
A name can have letters numbers and the underscore symbol. Same goes for the ticker.
So, if you want to introduce two coins, FooCoin and BarCoin, with tickers FOO and BAR respectively, you’d enter:
FooCoin,FOO,BarCoin,BAR
(In the upcoming wallets6 release it will be easy to create currencies via the admin editor, so this will become much easier.)
with regards
March 3, 2022 at 8:28 pm #11552brutusinu
ParticipantThanks for the response. Now i understand it perfectly. Are there any other coin adapter that can be used with the Bitcoin wallet plugin other than coinpayment and block.io ?
March 4, 2022 at 8:44 am #11553alexg
KeymasterYes, the other coin adapters are for connecting to full node wallets. Don’t use the block.io adapter, the CoinPayments adapter is better in every way. I have added a warning about this on the website. You can see the complete list of existing coin adapters.
Coin adapters will soon be retired in favor of wallet adapters: Since I started the plugin it has become apparent that currencies need to be decoupled from wallets. Therefore, with the upcoming release, new wallet adapters will replace the old coin adapters. See attached image to get an idea of what I’m building.
There will be wallet adapters for CoinPayments, Bitcoin-like wallets, Monero-like wallets, and TurtleCoin-like wallets. The fiat coin adapter will be merged into the parent plugin.
The code and documentation will be a lot better, so hopefully independent developers will choose to build wallet adapters for other types of wallets. I, for one, will focus my efforts on Ethereum and ERC-20, which should then be easily translatable to BSC chain and friends. The difficulty (and the reason I’m not currently using the Infura API as many have suggested) is that funds must be collected in one wallet, to allow for off-chain transactions.
Other plugins have connectivity with remote custodial services, or with non-custodial wallets. I plan to expand this plugin towards admins who are interested in a custodial solution, backed with their own full node wallet. But the CoinPayments platform will continue to be supported, as it has been a success and many people use it.
In wallets6 you will be able to define custom tokens via the WordPress admin screens, just like any other currency. Custom tokens will simply be currencies that are not connected to a wallet (i.e. no wallet adapter).
Hope this makes sense. Let me know if you have more questions about adapters. But please open a new thread if your new questions are not related to your original question about creating custom tokens.
with regards
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to reply to this topic.