Skip to content

Instantly share code, notes, and snippets.

@dome
Created December 12, 2025 06:13
Show Gist options
  • Select an option

  • Save dome/8e7d743af5cf48e687a2d24738cc2880 to your computer and use it in GitHub Desktop.

Select an option

Save dome/8e7d743af5cf48e687a2d24738cc2880 to your computer and use it in GitHub Desktop.

curl --location 'https://wallet-api.tk9.us/api/v1/wallet/create'
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--data '{ "passwordSecretkey": "123456!" }'

มันจะตอบกลับ { "success": true, "data": { "address": "0x742d35Cc6634C0532925a3b8D4C9db96C4b4Db45", "daccPublickey": "daccPublickey_0x742d35Cc6634C0532925a3b8D4C9db96C4b4Db45_XxX" } }

ก็เอาไปเก็บ ไว้ ตอนทำรายการโอน ก็เอา passwordSecretkey daccPublickey ส่งมา chain id เรา 7117

ตัวอย่างการโอนเหรียญ native curl --location 'https://wallet-api.tk9.us/api/v1/7117/send-native'
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--data '{ "to": "0x742d35Cc6634C0532925a3b8D4C9db96C4b4Db45", "amount": 0.01, "daccPublickey": "daccPublickey_0x123_XxX", "passwordSecretkey": "myPassword123" }'

โอน Token แบบไม่ต้องจ่าย gas https://wallet-api.tk9.us/api/v1/:chainId/payment/create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment