{"id":353,"date":"2023-11-23T07:05:51","date_gmt":"2023-11-23T07:05:51","guid":{"rendered":"http:\/\/10.0.1.147\/?page_id=35"},"modified":"2024-07-02T13:24:26","modified_gmt":"2024-07-02T13:24:26","slug":"developers-mapping-server","status":"publish","type":"page","link":"https:\/\/www.hashcashconsultants.com\/developers-mapping-server\/","title":{"rendered":"Developers Mapping Server"},"content":{"rendered":"
When testing the communication server, we added a memo to the transaction in order to identify what customer account to credit. However, other people and organizations using HC Net might not know they need to do that. How do they find out?<\/p>\n
The HC Net mapping protocol allows you to convert a human-readable address like sam*your_org.com[1] to an account ID. It also includes information about what should be in a transaction\u2019s memo. When sending a payment, you contact a mapping server first to determine what HC Net account ID to pay. Luckily, the communication server does this for you.<\/p>\n
HCNet.org provides a prebuilt mapping server that can hook into an existing user database, but you can also write your own.<\/p>\n<\/div>\n
The HC Net mapping server is designed to connect to any existing SQL database you might have with a list of account names. It essentially translates a mapping request into a SQL query. The server supports MySQL, PostgreSQL, and SQLite3.<\/p>\n
At a minimum, your database should have a table with a column identifying the name to use for each account record.[2] In your existing system, you might have a table named accounts that looks something like:<\/p>\n
id<\/th>\n | first_name<\/th>\n | last_name<\/th>\n | friendly_id<\/th>\n<\/tr>\n<\/thead>\n |
---|---|---|---|
1<\/td>\n | Mike<\/td>\n | Milli<\/td>\n | mike_milli<\/td>\n<\/tr>\n |
2<\/td>\n | Amy<\/td>\n | Smith<\/td>\n | amy_smith<\/td>\n<\/tr>\n |
3<\/td>\n | Jack<\/td>\n | Brown<\/td>\n | jack_brown<\/td>\n<\/tr>\n |
4<\/td>\n | Steint\u00f3r<\/td>\n | J\u00e1kupsson<\/td>\n | steintor_jakupsson<\/td>\n<\/tr>\n |
5<\/td>\n | Sneha<\/td>\n | Kapoor<\/td>\n | sneha_kapoor<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n Where Mike\u2019s HC Net address would be mike_milli*your_org.com.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" Mapping Server When testing the communication server, we added a memo to the transaction in order to identify what customer account to credit. However, other people and organizations using HC Net might not know they need to do that. How do they find out? The HC Net mapping protocol allows you to convert a human-readable […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-developers-mapping-server.php","meta":{"footnotes":""},"class_list":["post-353","page","type-page","status-publish","hentry"],"yoast_head":"\n |