Class: Klaytn::Authentication
- Inherits:
-
Object
- Object
- Klaytn::Authentication
- Defined in:
- lib/klaytn/authentication.rb
Instance Method Summary collapse
Instance Method Details
#auth_params(kas_access_key, kas_secret_access_key) ⇒ Object
3 4 5 |
# File 'lib/klaytn/authentication.rb', line 3 def auth_params(kas_access_key, kas_secret_access_key) { username: kas_access_key, password: kas_secret_access_key } end |
#headers(chain_id) ⇒ Object
7 8 9 |
# File 'lib/klaytn/authentication.rb', line 7 def headers(chain_id) { 'x-chain-id' => chain_id.to_s } # chain id must be string! end |