-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added full native token info to chains response
- Loading branch information
Showing
5 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
type: object | ||
required: | ||
- name | ||
- symbol | ||
- decimals | ||
properties: | ||
name: | ||
type: string | ||
description: | | ||
The name of the token. | ||
example: "Binance Coin" | ||
symbol: | ||
type: string | ||
description: | | ||
The symbol of the token. | ||
example: "BNB" | ||
decimals: | ||
type: integer | ||
format: int64 | ||
description: | | ||
The number of decimals the token uses - e.g. 18, means to divide the token amount by 1000000000000000000 to get its user representation. | ||
example: 18 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* GENERATED. Do not modify. Your changes might be overwritten! | ||
*/ | ||
|
||
package resources | ||
|
||
type NativeTokenInfo struct { | ||
// The number of decimals the token uses - e.g. 18, means to divide the token amount by 1000000000000000000 to get its user representation. | ||
Decimals int64 `json:"decimals"` | ||
// The name of the token. | ||
Name string `json:"name"` | ||
// The symbol of the token. | ||
Symbol string `json:"symbol"` | ||
} |