bb8 icon indicating copy to clipboard operation
bb8 copied to clipboard

Use "asset_issuer" and "asset_code" for payment and trust

Open MikeFair opened this issue 6 years ago • 1 comments

The parameter names across different operations for custom assets is somewhat non-standard.

In send-payments they are called "token" and "issuer" In change-trust they are called "code" and "issuer_address" The allow-trust, path-payment, and manage-offer operations aren't exposed yet

MikeFair avatar Feb 28 '18 15:02 MikeFair

both send-payment and change-trust now accept "asset_issuer" and "asset_code":

$ bb change-trust -s '{"source_account": "'$(cat foo)'",
                       "asset_code": "TIL",
                       "asset_issuer": "test_issuer*dotkam.com"}'
$ bb send-payment -s '{"from": "'$(cat tmp/distributor)'",
                       "to": "'$(cat foo.pub)'",
                       "amount": "42",
                       "asset_code": "TIL",
                       "asset_issuer": "test_issuer*dotkam.com"}'

the other options are still supported for backward compatibility. will phase them out in later releases

tolitius avatar Apr 16 '18 19:04 tolitius